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
Describe the bug A controller parameter without default value creates error in routes collector toolbar.
CodeIgniter 4 version CodeIgniter4 Beta 0.0.2
Affected module(s) system\Debug\Toolbar\Collectors\Routes.php
Expected behavior, and steps to reproduce if appropriate
You get
ReflectionException Internal error: Failed to retrieve the default value
The following statement in system\Debug\Toolbar\Collectors\Routes.php:
'<empty> | default: ' . var_export($param->getDefaultValue(), true),
Calling $param->getDefaultValue() without isDefaultValueAvailable check causes this exists error.
Fix
'<empty> | default: ' . var_export($param->isDefaultValueAvailable() ? $param->getDefaultValue() : null, true),
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
A controller parameter without default value creates error in routes collector toolbar.
CodeIgniter 4 version
CodeIgniter4 Beta 0.0.2
Affected module(s)
system\Debug\Toolbar\Collectors\Routes.php
Expected behavior, and steps to reproduce if appropriate
You get
ReflectionException Internal error: Failed to retrieve the default value
The following statement in system\Debug\Toolbar\Collectors\Routes.php:
Calling $param->getDefaultValue() without isDefaultValueAvailable check causes this exists error.
Fix
The text was updated successfully, but these errors were encountered: