-
Notifications
You must be signed in to change notification settings - Fork 332
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
[PHP 7.3] compact() issues an E_NOTICE level error #234
Comments
Note: same problem exists with LogViewer/src/Http/Controllers/LogViewerController.php Lines 98 to 105 in a8cd768
and LogViewer/src/Http/Controllers/LogViewerController.php Lines 115 to 126 in a8cd768
|
Note: after swapping
|
This is why:
Changelog
Source: https://secure.php.net/manual/en/function.compact.php PHP 7.3 is not supported for the time being but it's good to know 👍 Feel free to make a PR |
Just replace usages of
TO
OR
|
@arcanedev-maroc no, this isn't a PHP 7.3 issue. It's bugs that were created in #153 when refactoring was done which relocated some variables but didn't update the variables passed to See PR #242 |
Patch released: |
The current installation guide will fail for PHP 7.3, so I added this fix: It tells the user to do a composer require to version `4.6`, which will install 4.6.0. This version has an [incompatibility issue](ARCANEDEV#234) with PHP 7.3 that has been fixed in 4.6.1, so it makes sense to require that by default. Maybe there is a better solution to require the *latest stable* of 4.6 rather than setting the .1 manually. Feel free to edit this commit :)
The current installation guide will fail for PHP 7.3, so I added this fix: It tells the user to do a composer require to version `4.6`, which will install 4.6.0. This version has an [incompatibility issue](ARCANEDEV/LogViewer#234) with PHP 7.3 that has been fixed in 4.6.1, so it makes sense to require that by default. Maybe there is a better solution to require the *latest stable* of 4.6 rather than setting the .1 manually. Feel free to edit this commit :)
Description:
Trying to
compact
a non-defined variable.LogViewer/src/Http/Controllers/LogViewerController.php
Lines 82 to 89 in a8cd768
Steps To Reproduce:
Followed @arcanedev-maroc instructions in #195 (comment)
Added logging to route:
compact(): Undefined variable: footer
The text was updated successfully, but these errors were encountered: