We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi I get an error Invalid value definition when I use the following code:
<?php class Hello { const EXPECTED_INPUT_NAME = Array(); }
It works fine with normal constant definition.
The real code I'm using is :
/** * @var string[] */ const EXPECTED_INPUT_NAME = Array( "currency"=>self::MANDATORY, "date"=>self::MANDATORY, "information"=>self::OPTIONAL, "mac"=>self::MANDATORY, "offerAmount"=>self::MANDATORY, "pos"=>self::MANDATORY, "reference"=>self::MANDATORY, "status"=>self::MANDATORY, "transactionAmount"=>self::MANDATORY, "version"=>self::MANDATORY, );
but I found out that it still fails even with void arrays.
The text was updated successfully, but these errors were encountered:
This is a PHP 5.6 feature, that's maybe the reason why it is not yet implemented
Sorry, something went wrong.
Support scalar expressions for constants
32fce50
This allows ReflectionConstant to parse scalar expressions when defining constants, such as: const FOO = 1 ** 2; const BAR = array(1 => 'one'); const BAZ = 'foo' . 'bar'; const QUX = \Acme\Com\Demo::class; Should fix Andrewsville#62 and Andrewsville#69.
439622b
No branches or pull requests
Hi I get an error Invalid value definition when I use the following code:
It works fine with normal constant definition.
The real code I'm using is :
but I found out that it still fails even with void arrays.
The text was updated successfully, but these errors were encountered: