Skip to content

Commit d39a23f

Browse files
fix: depedency version compatibility for PHP 8.1
1 parent e7a91cf commit d39a23f

File tree

5 files changed

+15
-10
lines changed

5 files changed

+15
-10
lines changed

composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@
2525
"codewithkyrian/platform-package-installer": "^1.0"
2626
},
2727
"require-dev": {
28-
"pestphp/pest": "^2.31",
29-
"symfony/var-dumper": "^7.0"
28+
"ffi/var-dumper": "^1.0",
29+
"pestphp/pest": "^2.36.0|^3.5.0",
30+
"symfony/var-dumper": "^6.4.11|^7.1.5"
3031
},
3132
"suggest": {
3233
"ext-imagick": "Required to use the Imagick Driver for image processing",

examples/composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
"codewithkyrian/transformers": "dev-model-revamp"
1818
},
1919
"require-dev": {
20-
"symfony/var-dumper": "^7.0"
20+
"symfony/var-dumper": "^7.0",
21+
"ffi/var-dumper": "^1.0@dev"
2122
},
2223
"minimum-stability": "dev",
2324
"repositories": [

tests/Utils/HubTest.php

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,27 +20,32 @@
2020

2121
it('joins paths correctly', function () {
2222
$result = joinPaths('path', 'to', 'file');
23-
expect($result)->toBe('path/to/file');
23+
$expected = 'path'.DIRECTORY_SEPARATOR.'to'.DIRECTORY_SEPARATOR.'file';
24+
expect($result)->toBe($expected);
2425
});
2526

2627
it('joins paths correctly with leading slash', function () {
2728
$result = joinPaths('/path', 'to', 'file');
28-
expect($result)->toBe('/path/to/file');
29+
$expected = '/path'.DIRECTORY_SEPARATOR.'to'.DIRECTORY_SEPARATOR.'file';
30+
expect($result)->toBe($expected);
2931
});
3032

3133
it('joins paths correctly with trailing slash', function () {
3234
$result = joinPaths('path', 'to', 'file/');
33-
expect($result)->toBe('path/to/file');
35+
$expected = 'path'.DIRECTORY_SEPARATOR.'to'.DIRECTORY_SEPARATOR.'file';
36+
expect($result)->toBe($expected);
3437
});
3538

3639
it('joins paths correctly with empty string', function () {
3740
$result = joinPaths('path', '', 'file');
38-
expect($result)->toBe('path/file');
41+
$expected = 'path'.DIRECTORY_SEPARATOR.'file';
42+
expect($result)->toBe($expected);
3943
});
4044

4145
it('joins paths correctly with empty string and slashes', function () {
4246
$result = joinPaths('path', '', '/file');
43-
expect($result)->toBe('path/file');
47+
$expected = 'path'.DIRECTORY_SEPARATOR.'file';
48+
expect($result)->toBe($expected);
4449
});
4550

4651
it('ensures directory creation', function () {

tests/ffi/SamplerateTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
use Codewithkyrian\Transformers\FFI\Samplerate;
66
use FFI\CData;
7-
use FFI;
87

98
beforeEach(function () {
109
if (!extension_loaded('ffi')) {

tests/ffi/SndfileTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
use Codewithkyrian\Transformers\FFI\Sndfile;
66
use FFI\CData;
7-
use FFI;
87

98
beforeEach(function () {
109
if (!extension_loaded('ffi')) {

0 commit comments

Comments
 (0)