FAQ
Edit report at https://pear.php.net/bugs/bug.php?id=18899&edit=1

ID: 18899
Updated by: gsherwood@squiz.net
Reported By: diou at vetorial dot net
Summary: Error in Generic.CodeAnalysis.UnusedFunctionParameter
-Status: Open
+Status: Feedback
Type: Bug
Package: PHP_CodeSniffer
Operating System: Windows
Package Version: 1.3.0
PHP Version: 5.2.12
-Assigned To:
+Assigned To: squiz
Roadmap Versions:
New Comment:

-Status: Open
+Status: Feedback
-Assigned To:
+Assigned To: squiz
I get "The method parameter $html is never used" but nothing about the
$id param.
Can you try grabbing the latest version and see if you are still getting
this problem.


Previous Comments:
------------------------------------------------------------------------

[2011-10-11 02:35:14] dioubernardo

Description:
------------
In code:

static function montaDadosPerfil(&$html, $id){
$db = &COM_DB::obtem();
$co = $db->query("
select
id,
nome,
tokenpagamentodigital
from
usuarios
where
id in ({id},{$_SESSION['idUsuario']})
order by
1
limit 1
", array(
'id' => (int)$id
));
.....

the warning is generated: "The method parameter $id is never used"

------------------------------------------------------------------------

Search Discussions

  • Gsherwood at Jan 30, 2012 at 2:41 am
    Edit report at https://pear.php.net/bugs/bug.php?id=18899&edit=1

    ID: 18899
    Updated by: gsherwood@squiz.net
    Reported By: diou at vetorial dot net
    Summary: Error in Generic.CodeAnalysis.UnusedFunctionParameter
    -Status: Feedback
    +Status: No Feedback
    Type: Bug
    Package: PHP_CodeSniffer
    Operating System: Windows
    Package Version: 1.3.0
    PHP Version: 5.2.12
    Assigned To: squiz
    Roadmap Versions:
    New Comment:

    -Status: Feedback
    +Status: No Feedback
    If you get a chance to re-test this, please reopen and let me know.


    Previous Comments:
    ------------------------------------------------------------------------

    [2012-01-11 03:45:04] squiz

    -Status: Open
    +Status: Feedback
    -Assigned To:
    +Assigned To: squiz
    I get "The method parameter $html is never used" but nothing about the
    $id param.
    Can you try grabbing the latest version and see if you are still getting
    this problem.

    ------------------------------------------------------------------------

    [2011-10-11 02:35:14] dioubernardo

    Description:
    ------------
    In code:

    static function montaDadosPerfil(&$html, $id){
    $db = &COM_DB::obtem();
    $co = $db->query("
    select
    id,
    nome,
    tokenpagamentodigital
    from
    usuarios
    where
    id in ({id},{$_SESSION['idUsuario']})
    order by
    1
    limit 1
    ", array(
    'id' => (int)$id
    ));
    .....

    the warning is generated: "The method parameter $id is never used"

    ------------------------------------------------------------------------

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedJan 11, '12 at 2:44a
activeJan 30, '12 at 2:41a
posts2
users1
websitepear.php.net

1 user in discussion

Gsherwood: 2 posts

People

Translate

site design / logo © 2022 Grokbase