Skip to content

Commit 27d430c

Browse files
committed
chore: prepares for pest 4.x
1 parent aa9747b commit 27d430c

3 files changed

Lines changed: 12 additions & 8 deletions

File tree

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
"license": "MIT",
1414
"require": {
1515
"php": "^8.3",
16-
"pestphp/pest": "^3.8.2",
17-
"pestphp/pest-plugin": "^3.0.0",
16+
"pestphp/pest": "^4.0.0",
17+
"pestphp/pest-plugin": "^4.0.0",
1818
"symfony/process": "^7.2.5",
1919
"textalk/websocket": "^1.6.3"
2020
},
@@ -29,8 +29,8 @@
2929
"require-dev": {
3030
"laravel/pint": "^1.22",
3131
"peckphp/peck": "^0.1.3",
32-
"pestphp/pest-dev-tools": "^3.4.0",
33-
"pestphp/pest-plugin-type-coverage": "^3.5",
32+
"pestphp/pest-dev-tools": "^4.0.0",
33+
"pestphp/pest-plugin-type-coverage": "^4.0.0",
3434
"ext-pcntl": "*",
3535
"ext-posix": "*"
3636
},

peck.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,12 @@
1212
"str",
1313
"uncheck",
1414
"websocket",
15-
"webkit"
15+
"webkit",
16+
"nav",
17+
"filesystems",
18+
"favicon",
19+
"js"
1620
],
1721
"paths": []
1822
}
19-
}
23+
}

src/Playground.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public function url(string $path = '/'): string
7777
$this->scheme,
7878
$this->host,
7979
$this->port,
80-
ltrim($path, '/')
80+
mb_ltrim($path, '/')
8181
);
8282
}
8383

@@ -104,7 +104,7 @@ private function shutdownIdleProcesses(): void
104104
}
105105

106106
$output = $process->getOutput();
107-
$lines = explode("\n", trim($output));
107+
$lines = explode("\n", mb_trim($output));
108108

109109
foreach (array_slice($lines, 1) as $line) {
110110
$columns = preg_split('/\s+/', $line);

0 commit comments

Comments
 (0)