-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(refactor): Support php 8.1 and 8.2 with reorganized structure fo… (
#4) * feat(refactor): Support php 8.1 and 8.2 with reorganized structure for better maintaining. * fix(refactor): Lock dependencies. * fix(refactor): Fixed relative path. * fix(refactor): Correct rule SlevomatCodingStandard.TypeHints.DeclareStrictTypes. * resolved few comments and added few more. * feat(refactor): Incorporated feedback. * fix(rule): Fixed SlevomatCodingStandard.Classes.RequireMultiLineMethodSignature. IncludedMethodPatterns require regexp parameter. --------- Co-authored-by: Tomas Mihalicka <[email protected]>
- Loading branch information
1 parent
25cee90
commit ece4363
Showing
29 changed files
with
921 additions
and
240 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,6 @@ on: | |
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
FROM php:8.1-fpm | ||
|
||
RUN apt-get update && apt-get install -y git-core zlib1g-dev libzip-dev zip unzip | ||
RUN docker-php-ext-install zip | ||
|
||
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" && \ | ||
php -r "if (hash_file('SHA384', 'composer-setup.php') === trim(file_get_contents('https://composer.github.io/installer.sig'))) { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" && \ | ||
php composer-setup.php && \ | ||
mv composer.phar /usr/local/bin/composer && \ | ||
unlink composer-setup.php | ||
|
||
WORKDIR /srv/www |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
FROM php:8.2-fpm | ||
|
||
RUN apt-get update && apt-get install -y git-core zlib1g-dev libzip-dev zip unzip | ||
RUN docker-php-ext-install zip | ||
|
||
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" && \ | ||
php -r "if (hash_file('SHA384', 'composer-setup.php') === trim(file_get_contents('https://composer.github.io/installer.sig'))) { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" && \ | ||
php composer-setup.php && \ | ||
mv composer.phar /usr/local/bin/composer && \ | ||
unlink composer-setup.php | ||
|
||
WORKDIR /srv/www |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0"?> | ||
<ruleset name="PixelFederation"> | ||
<rule ref="./phpcs.ruleset.81.xml"> | ||
<arg name="extensions" value="php" /> | ||
|
||
<exclude name="SlevomatCodingStandard.Classes.SuperfluousAbstractClassNaming"/> | ||
<exclude name="SlevomatCodingStandard.Classes.SuperfluousErrorNaming"/> | ||
<exclude name="SlevomatCodingStandard.Classes.SuperfluousExceptionNaming"/> | ||
<exclude name="SlevomatCodingStandard.Classes.SuperfluousInterfaceNaming"/> | ||
<exclude name="SlevomatCodingStandard.Classes.SuperfluousTraitNaming"/> | ||
<exclude name="SlevomatCodingStandard.Classes.TraitUseDeclaration"/> | ||
<exclude name="SlevomatCodingStandard.Classes.TraitUseSpacing"/> | ||
</rule> | ||
</ruleset> |
Oops, something went wrong.