Skip to content

Support for ouptut variables of function call #3

@JanTvrdik

Description

@JanTvrdik

The following code
https://github.com/nextras/migrations/blob/a3743b49386d3fdcbedb8b4a4db95abecf370e7d/src/Bridges/SymfonyConsole/CreateCommand.php results in incorrent „Undefined variable“ error. The variables are actually output variables of function call. Unfortunatelly, PHP does not differenciate between out-only and in-out variables.

 ------ ----------------------------------------------
  Line   src\Bridges\SymfonyConsole\CreateCommand.php
 ------ ----------------------------------------------
  44     Undefined variable: $foundYear
  45     Undefined variable: $foundYear
  45     Undefined variable: $foundMonth
 ------ ----------------------------------------------

BTW: Have you consider using https://github.com/ircmaxell/php-cfg?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions