Skip to content

Conversation

@staabm
Copy link
Contributor

@staabm staabm commented Feb 10, 2025

adds a new Github Action workflow via lints against PHP 7.x to prevent problems like #3976 which got fixed in f1f7b61

the newly added check skips the following files, as these currently contain PHP8+ only syntax:

Script parallel-lint handling the __exec_command event returned with error code 1
Error: Parse error: syntax error, unexpected 'o755' (T_STRING), expecting ')' in src/Documentation/DocGen.php on line 311
Error: Parse error: syntax error, unexpected 'o755' (T_STRING) in src/Component/PharUpdate/Update.php on line 104
Error: Parse error: syntax error, unexpected ':', expecting ')' in tests/legacy/recipe/named_arguments.php on line 8

@antonmedv
Copy link
Member

Nice! Should we fix php8 file to be php7?

tests/legacy/recipe/named_arguments.php
src/Documentation/DocGen.php

Can be skipped.

But src/Component/PharUpdate/Update.php seems important.

@staabm
Copy link
Contributor Author

staabm commented Feb 10, 2025

sure - here you are

@antonmedv antonmedv merged commit 150818d into deployphp:7.x Feb 10, 2025
1 check passed
@staabm staabm deleted the lint branch February 10, 2025 15:10
clxmstaab pushed a commit to staabm/deployer that referenced this pull request Feb 10, 2025
* Lint sources on PHP 7.x via Github Action

* Skip PHP8 only files

* Fix PHP7 compat in rc/Component/PharUpdate/Update.php

* Simplify workflow

* Simplify even more
clxmstaab pushed a commit to staabm/deployer that referenced this pull request Feb 10, 2025
antonmedv added a commit that referenced this pull request Feb 10, 2025
* Lint sources on PHP 8.2 via Github Action (#4016)

* Update lint.yml

* Update lint.yml

---------

Co-authored-by: Anton Medvedev <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants