jcubic / expression.php

Safely evaluate math, string, and boolean expressions
MIT License
1 stars 2 forks source link

PSR 4 error #2

Open pc-magas opened 7 months ago

pc-magas commented 7 months ago

In my laravel project I did:

composer require jcubic/expression

And I got the error:

Class jcubic\Parser located in ./vendor/jcubic/expression/src/jcubic/Parser.peg.php does not comply with psr-4 autoloading standard. Skipping.

Is that an issue????

Another error that I got is:

Skipped installation of bin bin/peg for package smuuf/php-peg: file not found in pack
jcubic commented 7 months ago

I don't get this warning. But I don't use Laravel. Note that warnings can be ignored.

I'm not sure if moving the file somewhere else will fix the warning.

Note that bin/peg issue is also a warning. The library is a fork that doesn't have a way to report an issue. And they removed the executable file. You need to report this to smuuf/php-peg (if you find a way), this is not my project.