Skip to content

Commit

Permalink
Merge pull request #69 from KevinVanSonsbeek/master
Browse files Browse the repository at this point in the history
PHP 8.0 fix.
  • Loading branch information
nusje2000 authored Oct 26, 2021
2 parents 0b13930 + a0be3dd commit 1ba96d2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,16 @@ on: [pull_request, push]

jobs:
build:
name: Build - PHP ${{ matrix.php-versions }}
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: [ '7.2', '7.3', '7.4', '8.0' ]
steps:
- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@v1
with:
php-version: 7.2
php-version: ${{ matrix.php-versions }}

- uses: actions/checkout@v1

Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
},
"require": {
"php": "^7.2 || ^8.0",
"aeviiq/collection": "^3.3",
"aeviiq/storage-manager": "^5.0",
"aeviiq/enum": "^2.0",
"aeviiq/collection": "^3.2",
"aeviiq/storage-manager": "^3.0 || ^4.0 || ^5.0",
"aeviiq/enum": "^3.0",
"symfony/form": "^4.3 || ^5.0",
"symfony/http-foundation": "^4.3 || ^5.0",
"symfony/event-dispatcher-contracts": "^1.0 || ^2.0"
Expand Down
5 changes: 5 additions & 0 deletions src/Enum/Transition/Status.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,9 @@ public function isUnhandledForm(): bool
{
return $this->contains(new self(self::UNHANDLED_FORM));
}

private function isFlagSet(int $flags, int $flag): bool
{
return ($flag & $flags) === $flag;
}
}

0 comments on commit 1ba96d2

Please sign in to comment.