Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
strategy:
matrix:
php-version:
- '8.1'
- '8.2'

steps:
-
Expand Down Expand Up @@ -52,7 +52,7 @@ jobs:
strategy:
matrix:
php-version:
- '8.1'
- '8.2'

steps:
-
Expand Down Expand Up @@ -85,8 +85,10 @@ jobs:
strategy:
matrix:
php-version:
- '8.0'
- '8.1'
- '8.2'
- '8.3'
- '8.4'
- '8.5'

steps:
-
Expand All @@ -109,11 +111,11 @@ jobs:
-
name: "Install Watchman"
run: |
wget https://github.com/facebook/watchman/releases/download/v2020.09.14.00/watchman-v2020.09.14.00-linux.zip
unzip watchman-v2020.09.14.00-linux.zip
wget https://github.com/facebook/watchman/releases/download/v2025.12.22.00/watchman-v2025.12.22.00-linux.zip
unzip watchman-v2025.12.22.00-linux.zip
sudo mkdir -p /usr/local/{bin,lib} /usr/local/var/run/watchman
sudo mv watchman-v2020.09.14.00-linux/bin/watchman /usr/local/bin/watchman
sudo mv watchman-v2020.09.14.00-linux/lib/* /usr/local/lib/
sudo mv watchman-v2025.12.22.00-linux/bin/watchman /usr/local/bin/watchman
sudo mv watchman-v2025.12.22.00-linux/lib/* /usr/local/lib/
sudo chmod 755 /usr/local/bin/watchman
sudo chmod 2777 /usr/local/var/run/watchman
-
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Amp FS Watch
![CI](https://github.com/phpactor/amp-fswatch/workflows/CI/badge.svg)

This is an [Amp](https://amphp.org/) library for asynchronously monitor paths
on your file system changes using various stategues.
on your file system changes using various stategies.

It's been created to trigger code indexing in
[Phpactor](https://github.com/phpactor/phpactor).
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
}
],
"require": {
"php": "^8.0",
"php": "^8.2",
"amphp/amp": "^2.4",
"amphp/process": "^1.1",
"psr/log": "^1.1",
Expand Down
5 changes: 1 addition & 4 deletions tests/Watcher/Fallback/FallbackWatcherTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@ class FallbackWatcherTest extends AsyncTestCase
{
use \Prophecy\PhpUnit\ProphecyTrait;

/**
* @var ObjectProphecy|LoggerInterface
*/
private $logger;
private ObjectProphecy|LoggerInterface $logger;

private ObjectProphecy $watcher1;

Expand Down
6 changes: 2 additions & 4 deletions tests/Watcher/Watchman/WatchmanWatcherTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,14 @@
use Phpactor\AmpFsWatch\WatcherConfig;
use Phpactor\AmpFsWatch\Watcher\Watchman\WatchmanWatcher;
use Phpactor\AmpFsWatcher\Tests\Watcher\WatcherTestCase;
use Prophecy\Prophecy\ObjectProphecy;

class WatchmanWatcherTest extends WatcherTestCase
{
use \Prophecy\PhpUnit\ProphecyTrait;
private const PLAN_DELAY = 100;

/**
* @var ObjectProphecy|CommandDetector
*/
private $commandDetector;
private ObjectProphecy|CommandDetector $commandDetector;

public function testIsSupported(): Generator
{
Expand Down
Loading