Bump minimum PHP version to 8.1 and update packages
This commit is contained in:
parent
2d454ca8ae
commit
6c4e92baf2
|
@ -15,7 +15,7 @@ Please read the [CONTRIBUTING.md](CONTRIBUTING.md) and [DEVELOPMENT.md](DEVELOPM
|
|||
The Engelsystem may be installed manually or by using the provided [docker setup](#docker).
|
||||
|
||||
### Requirements
|
||||
* PHP >= 7.4
|
||||
* PHP >= 8.1
|
||||
* Required modules:
|
||||
* dom
|
||||
* json
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
"phpstan": "phpstan"
|
||||
},
|
||||
"require": {
|
||||
"php": ">=7.4.0",
|
||||
"php": ">=8.1.0",
|
||||
"ext-json": "*",
|
||||
"ext-libxml": "*",
|
||||
"ext-mbstring": "*",
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,5 +1,5 @@
|
|||
parameters:
|
||||
phpVersion: 70400
|
||||
phpVersion: 80100
|
||||
level: 1
|
||||
paths:
|
||||
- config
|
||||
|
|
|
@ -42,6 +42,10 @@ trait ChecksArrivalsAndDepartures
|
|||
return true; // since optional value
|
||||
}
|
||||
|
||||
if (is_null($arrival_carbon)) {
|
||||
return false; // Will be false any ways
|
||||
}
|
||||
|
||||
return $departure_carbon->greaterThanOrEqualTo($arrival_carbon) &&
|
||||
!$this->isBeforeBuildup($departure_carbon) && !$this->isAfterTeardown($departure_carbon);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue