Skip to content

Enforce typing primitive parameters for certain functions #77

Description

@krzysztofrewak

I believe that would be really hard to do this for every function, but some of them are really common cases that we can cover by hardcoding it.

For example this:

json_decode($content, true);
in_array($key, $array, true);

should be written as this:

json_decode($content, associative: true);
in_array($key, $array, strict: true);

We should also think about other examples here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    new ruleNew rules for ECS

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions