Skip to content

Commit 23532b6

Browse files
Merge pull request #19 from codenamephp/dependabot/docker/docker/application/webdevops/php-dev-8.3
Bump webdevops/php-dev from 8.2 to 8.3 in /docker/application
2 parents 5d101cf + 9f50cbf commit 23532b6

8 files changed

Lines changed: 15 additions & 14 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ jobs:
1919
ci:
2020
uses: codenamephp/workflows.php/.github/workflows/ci.yml@1
2121
with:
22-
php-versions: '["8.1", "8.2"]'
22+
php-versions: '["8.1", "8.2", "8.3"]'

.idea/runConfigurations/ci_all.xml

Lines changed: 0 additions & 8 deletions
This file was deleted.

docker/application/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM webdevops/php-dev:8.2
1+
FROM webdevops/php-dev:8.3
22

33
COPY --from=composer:2 /usr/bin/composer /usr/local/bin/composer
44

phive.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
-->
1717
<phive xmlns="https://phar.io/phive">
1818
<phar name="phpunit" version="^10.0" installed="10.2.0" location="./tools/phpunit.phar" copy="true"/>
19-
<phar name="psalm" version="^5.0" installed="5.12.0" location="./tools/psalm" copy="true"/>
19+
<phar name="psalm" version="^5.0" installed="5.18.0" location="./tools/psalm" copy="true"/>
2020
<phar name="composer-unused" version="^0.8" installed="0.8.9" location="./tools/composer-unused.phar" copy="true"/>
2121
<phar name="composer-require-checker" version="^4.0" installed="4.6.0" location="./tools/composer-require-checker" copy="true"/>
2222
<phar name="infection" version="^0.26" installed="0.26.21" location="./tools/infection" copy="true"/>

src/functions/All.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public function parse(string $value) : string {
146146
public function parseOnHost(Host $host, string $value) : string {
147147
$finalValue = '';
148148
$this->on($host, function() use (&$finalValue, $value) { $finalValue = $this->parse($value); });
149-
return (string) $finalValue;
149+
return $finalValue;
150150
}
151151

152152
public function run(string $command, ?array $options = [], ?int $timeout = null, ?int $idle_timeout = null, ?string $secret = null, ?array $env = null, ?bool $real_time_output = false, ?bool $no_throw = false) : string {

src/taskMatcher/ByRegexTaskName.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ final class ByRegexTaskName implements iTaskMatcher {
2727
public function __construct(public string $regex) {}
2828

2929
public function matches(Task $task) : bool {
30-
return preg_match($this->regex, $task->getName()) === 1;
30+
return $this->regex !== '' && preg_match($this->regex, $task->getName()) === 1;
3131
}
32-
}
32+
}

test/taskMatcher/ByRegexTaskNameTest.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,15 @@ public function testMatches() : void {
4949
self::assertFalse($this->sut->matches($task4));
5050
}
5151

52+
public function testMatches_canReturnFalse_whenRegexIsEmpty() : void {
53+
$this->sut->regex = '';
54+
55+
$task1 = $this->createMock(Task::class);
56+
$task1->expects(self::never())->method('getName');
57+
58+
self::assertFalse($this->sut->matches($task1));
59+
}
60+
5261
public function test__construct() : void {
5362
$regex = 'some regex';
5463

tools/psalm

92 KB
Binary file not shown.

0 commit comments

Comments
 (0)