Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use @filter correctly #1223

Open
plechev-64 opened this issue Jul 4, 2024 · 0 comments
Open

How to use @filter correctly #1223

plechev-64 opened this issue Jul 4, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@plechev-64
Copy link

PHP Version: 8.1
OS: Ubuntu

Hi, I try to test my custom rule with using @filter, like this:

function f()
{
    /**
     * @warning params of request without any check
     * @filter $_POST ^_POST$
     */
    $x = $_POST[$paramName];
}

but i find in result of test:

$x = $a['f']; 
$x = $_GET['test']; 
$x = $_REQUEST['test']; 
$a = $_POST['test']; 

i am waiting for only this

$a = $_POST['test']; 

why i have unexpectable results?
Thanks!

@plechev-64 plechev-64 added the bug Something isn't working label Jul 4, 2024
@plechev-64 plechev-64 changed the title How is use @filter correctly How to use @filter correctly Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant