Skip to content

Commit c6a07f1

Browse files
committed
Attempt 2
1 parent 76c43d1 commit c6a07f1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/php.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,12 @@ jobs:
7979
coverage: pcov
8080
tools: composer:v2
8181

82-
# Fix for Windows: enable sockets if missing for package donatj/mock-webserver (https://github.com/cebe/php-openapi/issues/236)
82+
# Fix for Windows: enable sockets if missing for package donatj/mock-webserver
8383
- name: Enable sockets on Windows
8484
if: runner.os == 'Windows'
8585
run: |
86-
echo "extension=sockets" | Out-File -Append "C:\tools\php\php.ini"
87-
php -m | findstr sockets || (echo "sockets not enabled" && exit 1)
86+
echo "extension=sockets" >> /c/tools/php/php.ini
87+
php -m | grep -q sockets || { echo "sockets not enabled"; exit 1; }
8888
8989
- name: Require specific symfony/yaml version
9090
run: "composer require symfony/yaml:'${{ matrix.symfony-yaml }}' --no-interaction --ansi --no-install"

0 commit comments

Comments
 (0)