dedoc/scramble

Too few arguments to function logger()

daniel-avis opened this issue · 4 comments

PHP: 7.4
Scramble: 0.7.2

Too few arguments to function logger(), 0 passed in /var/www/html/vendor/dedoc/scramble/src/Generator.php on line 48 and exactly 1 expected

This happens locally.

In Collection.php line 394:
                                                          
  array_flip(): Can only flip STRING and INTEGER values!  

This happens on the server.


Any ideas as to what the issues are?

@daniel-avis thanks for providing version numbers!

Most likely the issue is solved in the later versions of Scramble.

The latest version of Scramble is 0.10.13, but it requires PHP 8.1 and later.

For PHP 7.4 the latest version is 0.8.4. If you don't want/cannot upgrade PHP, can you try upgrading to 0.8.4?

0.8.0
Minimum PHP version is changed from 7.4 to 8.1. 96.4% of all the installs are coming from 8.1 and upper, so it's time to make this bump.

Unless its changed later on....

So we found the issue for the first problem:

Too few arguments to function logger()

We had created another "helper" function called logger for something else, so removing it fixed it.