diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 385fef6..cdb73d4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,7 +19,7 @@ jobs: strategy: matrix: php-version: - - '8.1' + - '8.2' steps: - @@ -52,7 +52,7 @@ jobs: strategy: matrix: php-version: - - '8.1' + - '8.2' steps: - @@ -85,8 +85,10 @@ jobs: strategy: matrix: php-version: - - '8.0' - - '8.1' + - '8.2' + - '8.3' + - '8.4' + - '8.5' steps: - @@ -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 - diff --git a/README.md b/README.md index 83ad72d..dc684b2 100644 --- a/README.md +++ b/README.md @@ -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). diff --git a/composer.json b/composer.json index 7ad4875..0cfeef8 100644 --- a/composer.json +++ b/composer.json @@ -10,7 +10,7 @@ } ], "require": { - "php": "^8.0", + "php": "^8.2", "amphp/amp": "^2.4", "amphp/process": "^1.1", "psr/log": "^1.1", diff --git a/tests/Watcher/Fallback/FallbackWatcherTest.php b/tests/Watcher/Fallback/FallbackWatcherTest.php index 5d6c560..1c93682 100644 --- a/tests/Watcher/Fallback/FallbackWatcherTest.php +++ b/tests/Watcher/Fallback/FallbackWatcherTest.php @@ -16,10 +16,7 @@ class FallbackWatcherTest extends AsyncTestCase { use \Prophecy\PhpUnit\ProphecyTrait; - /** - * @var ObjectProphecy|LoggerInterface - */ - private $logger; + private ObjectProphecy|LoggerInterface $logger; private ObjectProphecy $watcher1; diff --git a/tests/Watcher/Watchman/WatchmanWatcherTest.php b/tests/Watcher/Watchman/WatchmanWatcherTest.php index 8590389..bc0f82f 100644 --- a/tests/Watcher/Watchman/WatchmanWatcherTest.php +++ b/tests/Watcher/Watchman/WatchmanWatcherTest.php @@ -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 {