Skip to content

Commit

Permalink
Fixed PHP 7.4 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
freost committed Apr 10, 2024
1 parent 1145f3c commit ee80ca7
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
matrix:
php-version:
- "8.0"
- "7.4"
steps:
- name: "Checkout code"
uses: "actions/checkout@v3"
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
### 8.1.6 <small>(2024-04-10)</small>

#### Bugfixes

* Fixed PHP 7.4 compatibility.

--------------------------------------------------------

### 8.1.5 <small>(2023-01-21)</small>

#### Bugfixes
Expand Down
4 changes: 2 additions & 2 deletions src/mako/Mako.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class Mako
*
* @var string
*/
public const VERSION = '8.1.5';
public const VERSION = '8.1.6';

/**
* Mako major version.
Expand All @@ -38,5 +38,5 @@ class Mako
*
* @var int
*/
public const VERSION_PATCH = 5;
public const VERSION_PATCH = 6;
}
4 changes: 1 addition & 3 deletions src/mako/application/cli/commands/migrations/Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,11 @@
use mako\database\ConnectionManager;
use mako\database\migrations\Migration;
use mako\database\query\Query;
use mako\database\query\Result;
use mako\database\query\ResultSet;
use mako\file\FileSystem;
use mako\reactor\Command as BaseCommand;
use mako\syringe\Container;
use ReflectionClass;
use stdClass;

use function basename;
use function strcmp;
Expand Down Expand Up @@ -176,7 +174,7 @@ protected function findMigrations(): array
* @param \mako\database\query\Result|\stdClass $migration Migration
* @return string
*/
protected function getFullyQualifiedMigration(stdClass|Result $migration): string
protected function getFullyQualifiedMigration(object $migration): string
{
if(empty($migration->package))
{
Expand Down

0 comments on commit ee80ca7

Please sign in to comment.