Skip to content

Commit

Permalink
SAT-1809 php8.1 and the new propel (#2)
Browse files Browse the repository at this point in the history
* SAT-1809 Update to php8.1 and new propel

* update phpunit

* fix setup

* udpate propel

* add mikey179/vfsstream
  • Loading branch information
mhabibi authored Aug 18, 2022
1 parent 1972a1e commit 97402d8
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
language: php

php:
- 7.3
- 7.4
- 8.0
- 8.1

before_script:
# Composer
Expand Down
7 changes: 4 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
"name": "finanzcheck/change-logger-behavior",
"description": "A behavior allowing you to log one or more columns in a extra logging table like the versionable behavior for Propel2.",
"require": {
"propel/propel": "2.0.*@dev"
"propel/propel": "2.0.0-beta2",
"mikey179/vfsstream": "^1.6"
},
"require-dev": {
"phpunit/phpunit": "~4.0"
"phpunit/phpunit": "^9.5"
},
"autoload": {
"psr-4": {
Expand All @@ -27,4 +28,4 @@
"name": "change_logger",
"class": "\\Finanzcheck\\ChangeLogger\\ChangeLoggerBehavior"
}
}
}
2 changes: 1 addition & 1 deletion src/ChangeLoggerBehavior.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class ChangeLoggerBehavior extends Behavior
*/
protected $logTables = [];

public function modifyTable()
public function modifyTable(): void
{
$this->addLogTables();
}
Expand Down
4 changes: 2 additions & 2 deletions tests/ChangeLoggerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

class ChangeLoggerTest extends TestCase
{
public function setUp()
public function setUp(): void
{
if (!class_exists('\ChangeloggerBehaviorSingle')) {
$schema = <<<EOF
Expand Down Expand Up @@ -245,4 +245,4 @@ public function testMultilpeTableNameAliases()
$lastGammaVersion = \BazGammaLogQuery::create()->findOne();
$this->assertEquals(1, $lastGammaVersion->getGamma());
}
}
}

0 comments on commit 97402d8

Please sign in to comment.