Skip to content

Commit b33163b

Browse files
committed
Adapt Code for Php 7.1/2/3
1 parent 6af7984 commit b33163b

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.github/workflows/php.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ jobs:
109109

110110
- name: Composer Config nightly
111111
if: matrix.php == 'nightly'
112-
run: composer config platform.php 8.5.99
112+
run: composer config platform.php 8.4.99
113113

114114
- name: Composer Install
115115
run: composer install --ansi --prefer-dist --no-interaction --no-progress

tests/PhpWordTests/SampleTest.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,20 @@
2525

2626
class SampleTest extends TestCase
2727
{
28-
protected static bool $alwaysTrue = true;
28+
/** @var bool */
29+
protected static $alwaysTrue = true;
2930

3031
/**
32+
*
33+
* @param string $sample
34+
*
3135
* @preserveGlobalState disabled
3236
*
3337
* @runInSeparateProcess
3438
*
3539
* @dataProvider providerSample
3640
*/
37-
public function testSample(string $sample): void
41+
public function testSample($sample): void
3842
{
3943
ob_start();
4044
require $sample;

0 commit comments

Comments
 (0)