PHP Linter
OK
composer validate
Input: composer validate 'swissup/module-diagnostic/composer.json'; Output: swissup/module-diagnostic/composer.json is valid, but with a few warnings
See https://getcomposer.org/doc/04-schema.md for details on the schema
# Lock file errors
- The lock file is not up to date with the latest changes in composer.json, it is recommended that you run `composer update` or `composer update <package name>`.
- Required package "magento/framework" is not present in the lock file.
- Required package "symfony/console" is not present in the lock file.
This usually happens when composer files are incorrectly merged or the composer.json file is manually edited.
Read more about correctly resolving merge conflicts https://getcomposer.org/doc/articles/resolving-merge-conflicts.md
and prefer using the "require" command over editing the composer.json file directly https://getcomposer.org/doc/03-cli.md#require-r
# General warnings
- The version field is present, it is recommended to leave it out if the package is published on Packagist.
- require.symfony/console : unbound version constraints (*) should be avoided
PHP Stan
------ -----------------------------------------------------------------------
Line releases/72362282/storage/app/private/swissup/module-diagnostic/631ef
e7/Console/Command/AssetsCommand.php
------ -----------------------------------------------------------------------
38 Return type mixed of method
Swissup\Diagnostic\Console\Command\AssetsCommand::configure() is not
covariant with return type void of method
Symfony\Component\Console\Command\Command::configure().
🪪 method.childReturnType (non-ignorable)
------ -----------------------------------------------------------------------
------ -----------------------------------------------------------------------
Line releases/72362282/storage/app/private/swissup/module-diagnostic/631ef
e7/Console/Command/DisableSwissupCommand.php
------ -----------------------------------------------------------------------
9 Return type mixed of method
Swissup\Diagnostic\Console\Command\DisableSwissupCommand::configure()
is not covariant with return type void of method
Symfony\Component\Console\Command\Command::configure().
🪪 method.childReturnType (non-ignorable)
------ -----------------------------------------------------------------------
------ -----------------------------------------------------------------------
Line releases/72362282/storage/app/private/swissup/module-diagnostic/631ef
e7/Console/Command/DisableThirdpartyCommand.php
------ -----------------------------------------------------------------------
9 Return type mixed of method
Swissup\Diagnostic\Console\Command\DisableThirdpartyCommand::configur
e() is not covariant with return type void of method
Symfony\Component\Console\Command\Command::configure().
🪪 method.childReturnType (non-ignorable)
------ -----------------------------------------------------------------------
------ -----------------------------------------------------------------------
Line releases/72362282/storage/app/private/swissup/module-diagnostic/631ef
e7/Console/Command/EnableSwissupCommand.php
------ -----------------------------------------------------------------------
9 Return type mixed of method
Swissup\Diagnostic\Console\Command\EnableSwissupCommand::configure()
is not covariant with return type void of method
Symfony\Component\Console\Command\Command::configure().
🪪 method.childReturnType (non-ignorable)
------ -----------------------------------------------------------------------
------ -----------------------------------------------------------------------
Line releases/72362282/storage/app/private/swissup/module-diagnostic/631ef
e7/Console/Command/EnableThirdpartyCommand.php
------ -----------------------------------------------------------------------
9 Return type mixed of method
Swissup\Diagnostic\Console\Command\EnableThirdpartyCommand::configure
() is not covariant with return type void of method
Symfony\Component\Console\Command\Command::configure().
🪪 method.childReturnType (non-ignorable)
------ -----------------------------------------------------------------------
------ -----------------------------------------------------------------------
Line releases/72362282/storage/app/private/swissup/module-diagnostic/631ef
e7/Console/Command/HintsCommand.php
------ -----------------------------------------------------------------------
39 Return type mixed of method
Swissup\Diagnostic\Console\Command\HintsCommand::configure() is not
covariant with return type void of method
Symfony\Component\Console\Command\Command::configure().
🪪 method.childReturnType (non-ignorable)
------ -----------------------------------------------------------------------
------ -----------------------------------------------------------------------
Line releases/72362282/storage/app/private/swissup/module-diagnostic/631ef
e7/Console/Command/InfoCommand.php
------ -----------------------------------------------------------------------
37 Return type mixed of method
Swissup\Diagnostic\Console\Command\InfoCommand::configure() is not
covariant with return type void of method
Symfony\Component\Console\Command\Command::configure().
🪪 method.childReturnType (non-ignorable)
------ -----------------------------------------------------------------------
------ -----------------------------------------------------------------------
Line releases/72362282/storage/app/private/swissup/module-diagnostic/631ef
e7/Console/Command/InfoVirtualfixCommand.php
------ -----------------------------------------------------------------------
29 Return type mixed of method
Swissup\Diagnostic\Console\Command\InfoVirtualfixCommand::configure()
is not covariant with return type void of method
Symfony\Component\Console\Command\Command::configure().
🪪 method.childReturnType (non-ignorable)
------ -----------------------------------------------------------------------
[ERROR] Found 8 errors
Magento Coding Standard
FILE: .../storage/app/private/swissup/module-diagnostic/vendor/autoload.php
--------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
--------------------------------------------------------------------------------
14 | ERROR | Use of echo language construct is discouraged.
20 | ERROR | "require_once" statement detected. File manipulations are
| | discouraged. Concatenating is forbidden.
--------------------------------------------------------------------------------
FILE: ...rivate/swissup/module-diagnostic/vendor/composer/autoload_real.php
--------------------------------------------------------------------------------
FOUND 6 ERRORS AFFECTING 6 LINES
--------------------------------------------------------------------------------
5 | ERROR | Each class must be in a namespace of at least one level (a
| | top-level vendor name)
12 | ERROR | "require" statement detected. File manipulations are discouraged.
| | Concatenating is forbidden.
29 | ERROR | "require" statement detected. File manipulations are discouraged.
| | Concatenating is forbidden.
36 | ERROR | Direct use of $GLOBALS Superglobal detected.
37 | ERROR | Direct use of $GLOBALS Superglobal detected.
39 | ERROR | "require" statement detected. File manipulations are discouraged.
| | Variables inside are insecure.
--------------------------------------------------------------------------------
FILE: ...te/swissup/module-diagnostic/vendor/composer/InstalledVersions.php
--------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
--------------------------------------------------------------------------------
275 | ERROR | Silencing errors is discouraged; found:
| | @trigger_error('getRawData only returns the first dataset
| | loaded, which may not be what you expect. Use getAllRawData()
| | instead which returns all datasets for all autoloaders present
| | in the process.'...
281 | ERROR | "include" statement detected. File manipulations are
| | discouraged. Concatenating is forbidden.
364 | ERROR | "require" statement detected. File manipulations are
| | discouraged. Concatenating is forbidden. Variables inside are
| | insecure.
383 | ERROR | "require" statement detected. File manipulations are
| | discouraged. Concatenating is forbidden.
--------------------------------------------------------------------------------
FILE: .../private/swissup/module-diagnostic/vendor/composer/ClassLoader.php
--------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------
576 | ERROR | "include" statement detected. File manipulations are
| | discouraged. Variables inside are insecure.
--------------------------------------------------------------------------------
Time: 1.24 secs; Memory: 22MB