-
Notifications
You must be signed in to change notification settings - Fork 71
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
Checker doesn't see php-core-extensions section from config file #82
Comments
Hi,
did you eventually forgot to require `php`?
How does your `composer.json` look like?
Best regards,
Matthias
Am 22. August 2018 11:50:39 MESZ schrieb "Ondřej Mirtes" <notifications@github.com>:
…Hi,
I'm running Composer Require Checker on a codebase, like this:
```
php temp/composer-require-checker-1.0.0.phar check --config-file
/Users/ondrej/Development/telfa/composer-require-checker.json
composer.json
```
The `composer-require-checker.json` looks like this:
```
{
"symbol-whitelist": [
"null",
"true",
"false",
"static",
"self",
"parent",
"array",
"string",
"int",
"float",
"bool",
"iterable",
"callable",
"void",
"object"
],
"php-core-extensions": [
"Core",
"date",
"pcre",
"Phar",
"Reflection",
"SPL",
"standard"
]
}
```
The problem is that it still reports PHP core extensions:
```
ComposerRequireChecker 1.0.0
The following unknown symbols were found:
+-----------------------+--------------------+
| unknown symbol | guessed dependency |
+-----------------------+--------------------+
| Exception | ext-Core |
| filter_var | ext-filter |
| FILTER_VALIDATE_EMAIL | ext-filter |
| SplObjectStorage | ext-SPL |
| var_dump | ext-standard |
| count | ext-standard |
| DateTimeImmutable | ext-date |
| base64_encode | ext-standard |
| DATE_ISO8601 | ext-date |
| var_export | ext-standard |
| date_get_last_errors | ext-date |
| preg_match | ext-pcre |
+-----------------------+--------------------+
```
It does not ignore the first part of the config file because the
keywords are no longer reported.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
#82
|
Yes, |
Ok, great. |
@maglnet I definitely agree. Today I ran into the very same issue and only because of the discussion in this issue I was able to find out why are the php-core-extensions "ignored". |
Hi,
I'm running Composer Require Checker on a codebase, like this:
The
composer-require-checker.json
looks like this:The problem is that it still reports PHP core extensions:
It does not ignore the first part of the config file because the keywords are no longer reported.
The text was updated successfully, but these errors were encountered: