File tree Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 1313 strategy :
1414 matrix :
1515 operating-system : [ ubuntu-latest ]
16- php : [ '7.4' ]
17- # php: [ '7.4', '8.0' ]
16+ php : [ '7.4', '8.0' ]
1817
1918 name : PHP ${{ matrix.php }}
2019
5453 path : ${{ steps.composer-cache.outputs.dir }}
5554 key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
5655 restore-keys : |
57- ${{ runner.os }}-composer-
56+ ${{ runner.os }}-composer-
Original file line number Diff line number Diff line change 11{
22 "name" : " cubicl/php-structure-check" ,
3- "description" : " Structural check of arrays for PHP 7.3 +" ,
3+ "description" : " Structural check of arrays for PHP 7.4 +" ,
44 "keywords" : [
55 " array" ,
66 " structure" ,
4949 },
5050 "require" : {
5151 "ext-json" : " *" ,
52- "php" : " ^7.4"
52+ "php" : " ^7.4|^8.0 "
5353 }
5454}
Original file line number Diff line number Diff line change @@ -38,6 +38,6 @@ private function isValidDatetime(string $value): bool
3838 $ date = DateTime::createFromFormat ($ this ->datetimeFormat , $ value , new DateTimeZone ($ this ->datetimeZone ));
3939 $ errors = DateTime::getLastErrors ();
4040
41- return $ date && $ errors[ ' warning_count ' ] === 0 && $ errors [ ' error_count ' ] === 0 ;
41+ return $ date && ! $ errors ;
4242 }
4343}
You can’t perform that action at this time.
0 commit comments