User tests: Successful: Unsuccessful:
Pull Request for Issue # .
Add commands
composer run phpcs
composer run csfixer
Add excludes for cache
and logs
directory to php-cs-fixer configuration as we have the same exlcudes for phpcs.
Improvement for our nice contributors.
Open a terminal (and step into the cloned joomla developement folder)
composer i
composer run phpcs
composer run csfixer
Please select:
Documentation link for docs.joomla.org:
No documentation changes for docs.joomla.org needed
Pull Request link for manual.joomla.org: joomla/Manual#337
No documentation changes for manual.joomla.org needed
Status | New | ⇒ | Pending |
Category | ⇒ | External Library Composer Change |
No, absolutely not an expected result.
I have tried to replicate your issue but unfortunately I can't recreate it at the moment.
I have seen you run it directly on Windows.
Since I usually use Linux, I have now installed php 8.3 and composer directly on Windows.
But for me it runs without errors here too.
Is your IDE or your Git client possibly doing something with the line endings?
This pull request has been automatically rebased to 6.0-dev.
Title |
|
Before applying the patch I ran composer i and got Nothing to install, update or remove. The composer run phpcs and composer run csfixer both failed as described.
I then applied the patch and ran composer i - that gave me:
Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. It is recommended that you run
composer update
orcomposer update <package name>
.
- Required package "joomla/application" is in the lock file as "3.0.1" but that does not satisfy your constraint "^3.0.2".
and about 30 lines like the latter.
composer run phpcs gave me a lot of deprecation warnings, then the block of tesets 2% at a time and then many many report lines finishing with
Script ./libraries/vendor/bin/phpcs --extensions=php -p --standard=ruleset.xml . handling the phpcs event returned with error code 2
The composer run csfixer command retrned
./libraries/vendor/bin/php-cs-fixer fix -vvv --dry-run --diff
PHP needs to be a minimum version of PHP 7.4.0 and maximum version of PHP 8.3.*.
Current PHP version: 8.4.7.
To ignore this requirement please setPHP_CS_FIXER_IGNORE_ENV
.
If you use PHP version higher than supported, you may experience code modified in a wrong way.
Please report such cases at https://github.com/PHP-CS-Fixer/PHP-CS-Fixer .
Script ./libraries/vendor/bin/php-cs-fixer fix -vvv --dry-run --diff handling the csfixer event returned with error code 1
Perhaps the testing instructions need to be more specific?
is it expected to get this error at the end of running phpcs?
and this error at the end of running csfixer