Merge pull request #1068 from phil-davis/run-php-8.1-in-CI
Run PHP 8.1 in CI
This commit is contained in:
commit
b0fff14c5a
4 changed files with 16 additions and 16 deletions
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
@ -17,6 +17,8 @@ jobs:
|
||||||
include:
|
include:
|
||||||
- php-versions: '7.1'
|
- php-versions: '7.1'
|
||||||
cs-fixer: false
|
cs-fixer: false
|
||||||
|
- php-versions: '8.1'
|
||||||
|
cs-fixer: false
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
|
@ -39,15 +39,15 @@ class Collection extends \Flake\Core\FLObject implements \Iterator {
|
||||||
return key($this->aCollection);
|
return key($this->aCollection);
|
||||||
}
|
}
|
||||||
|
|
||||||
function next() {
|
function next(): void {
|
||||||
return next($this->aCollection);
|
next($this->aCollection);
|
||||||
}
|
}
|
||||||
|
|
||||||
function rewind() {
|
function rewind(): void {
|
||||||
$this->reset();
|
$this->reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
function valid() {
|
function valid(): bool {
|
||||||
$key = key($this->aCollection);
|
$key = key($this->aCollection);
|
||||||
|
|
||||||
return ($key !== null && $key !== false);
|
return ($key !== null && $key !== false);
|
||||||
|
|
|
@ -31,12 +31,12 @@ namespace Flake\Core\Datastructure;
|
||||||
* @extends \SplDoublyLinkedList<\Flake\Core\Datastructure\Chainable>
|
* @extends \SplDoublyLinkedList<\Flake\Core\Datastructure\Chainable>
|
||||||
*/
|
*/
|
||||||
class Chain extends \SplDoublyLinkedList {
|
class Chain extends \SplDoublyLinkedList {
|
||||||
function push($value) {
|
function push($value): void {
|
||||||
$value->chain($this, $this->count());
|
$value->chain($this, $this->count());
|
||||||
parent::push($value);
|
parent::push($value);
|
||||||
}
|
}
|
||||||
|
|
||||||
function offsetUnset($offset) {
|
function offsetUnset($offset): void {
|
||||||
throw new \Exception("Cannot delete Chainable in Chain");
|
throw new \Exception("Cannot delete Chainable in Chain");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,7 @@ abstract class ChainLink implements \Flake\Core\Datastructure\Chainable {
|
||||||
$this->__key = $key;
|
$this->__key = $key;
|
||||||
}
|
}
|
||||||
|
|
||||||
function offsetSet($offset, $value) {
|
function offsetSet($offset, $value): void {
|
||||||
if (is_null($this->__container)) {
|
if (is_null($this->__container)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -44,7 +44,7 @@ abstract class ChainLink implements \Flake\Core\Datastructure\Chainable {
|
||||||
$this->__container->offsetSet($offset, $value);
|
$this->__container->offsetSet($offset, $value);
|
||||||
}
|
}
|
||||||
|
|
||||||
function offsetExists($offset) {
|
function offsetExists($offset): bool {
|
||||||
if (is_null($this->__container)) {
|
if (is_null($this->__container)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -52,7 +52,7 @@ abstract class ChainLink implements \Flake\Core\Datastructure\Chainable {
|
||||||
return $this->__container->offsetExists($offset);
|
return $this->__container->offsetExists($offset);
|
||||||
}
|
}
|
||||||
|
|
||||||
function offsetUnset($offset) {
|
function offsetUnset($offset): void {
|
||||||
if (is_null($this->__container)) {
|
if (is_null($this->__container)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -70,7 +70,7 @@ abstract class ChainLink implements \Flake\Core\Datastructure\Chainable {
|
||||||
return $oRes;
|
return $oRes;
|
||||||
}
|
}
|
||||||
|
|
||||||
function rewind() {
|
function rewind(): void {
|
||||||
$this->__container->rewind();
|
$this->__container->rewind();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -82,10 +82,8 @@ abstract class ChainLink implements \Flake\Core\Datastructure\Chainable {
|
||||||
return $this->__container->key();
|
return $this->__container->key();
|
||||||
}
|
}
|
||||||
|
|
||||||
function &next() {
|
function &next(): void {
|
||||||
$oRes = $this->__container->next();
|
$this->__container->next();
|
||||||
|
|
||||||
return $oRes;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function &prev() {
|
function &prev() {
|
||||||
|
@ -94,11 +92,11 @@ abstract class ChainLink implements \Flake\Core\Datastructure\Chainable {
|
||||||
return $oPrev;
|
return $oPrev;
|
||||||
}
|
}
|
||||||
|
|
||||||
function valid() {
|
function valid(): bool {
|
||||||
return $this->__container->valid();
|
return $this->__container->valid();
|
||||||
}
|
}
|
||||||
|
|
||||||
function count() {
|
function count(): int {
|
||||||
return $this->__container->count();
|
return $this->__container->count();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue