diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index fc1f015f..03b54b75 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -17,7 +17,7 @@ jobs: strategy: fail-fast: false matrix: - php: ['7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1'] + php: ['7.2', '7.3', '7.4', '8.0', '8.1'] os: ['ubuntu-latest'] steps: @@ -51,13 +51,8 @@ jobs: strategy: fail-fast: false matrix: - php: ['7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1'] + php: ['7.2', '7.3', '7.4', '8.0', '8.1'] os: ['ubuntu-latest'] - include: - - php: '7.0' - phpunit-version: 6.5 - - php: '7.1' - phpunit-version: 7.5 steps: - name: Checkout code base diff --git a/composer.json b/composer.json index d42de350..7c18ab06 100644 --- a/composer.json +++ b/composer.json @@ -16,7 +16,7 @@ } }, "require": { - "php": ">=7.0", + "php": ">=7.2", "ext-json": "*", "ipl/html": ">=0.4.0", "ipl/stdlib": ">=0.11.0", diff --git a/src/Control/SearchBar/Terms.php b/src/Control/SearchBar/Terms.php index 4918859e..96562359 100644 --- a/src/Control/SearchBar/Terms.php +++ b/src/Control/SearchBar/Terms.php @@ -191,7 +191,7 @@ protected function assembleCondition(Filter\Condition $filter, BaseHtmlElement $ $this->assembleTerm($operatorData, $group); - if (! empty($value) || ctype_digit($value)) { + if (! empty($value) || ! is_string($value) || ctype_digit($value)) { $valueData = [ 'class' => 'value', 'type' => 'value', diff --git a/src/Widget/Tabs.php b/src/Widget/Tabs.php index d75170f5..32ba8e99 100644 --- a/src/Widget/Tabs.php +++ b/src/Widget/Tabs.php @@ -169,7 +169,7 @@ public function get($name) * * @return int */ - public function count() + public function count(): int { return $this->tabs->count(); }