Update dependencies #69
Annotations
74 warnings
|
Tests (8.3)
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/cache@v4, actions/checkout@v4, codecov/codecov-action@v1. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
Tests (8.3):
src/InotifyStream.php#L81
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
public function __destruct()
{
- $this->loop->removeReadStream($this->inotify);
+
if (is_resource($this->inotify)) {
fclose($this->inotify);
|
|
Tests (8.3):
src/InotifyStream.php#L76
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
$this->inotify = $inotify;
$this->loop = $loop ?? \React\EventLoop\Loop::get();
- $this->loop->addReadStream($this->inotify, [$this, 'handleData']);
+
}
public function __destruct()
|
|
Tests (8.3):
src/InotifyStream.php#L76
Escaped Mutant for Mutator "ArrayItemRemoval":
@@ @@
$this->inotify = $inotify;
$this->loop = $loop ?? \React\EventLoop\Loop::get();
- $this->loop->addReadStream($this->inotify, [$this, 'handleData']);
+ $this->loop->addReadStream($this->inotify, ['handleData']);
}
public function __destruct()
|
|
Tests (8.3):
src/InotifyStream.php#L74
Escaped Mutant for Mutator "Coalesce":
@@ @@
}
$this->inotify = $inotify;
- $this->loop = $loop ?? \React\EventLoop\Loop::get();
+ $this->loop = \React\EventLoop\Loop::get() ?? $loop;
$this->loop->addReadStream($this->inotify, [$this, 'handleData']);
}
|
|
Tests (8.3):
src/InotifyStream.php#L70
Escaped Mutant for Mutator "FunctionCallRemoval":
@@ @@
// This does not affect the default event loop implementation (level
// triggered), so we can ignore platforms not supporting this (HHVM).
if (function_exists('stream_set_read_buffer')) {
- stream_set_read_buffer($inotify, 0);
+
}
$this->inotify = $inotify;
|
|
Tests (8.3):
src/InotifyStream.php#L70
Escaped Mutant for Mutator "IncrementInteger":
@@ @@
// This does not affect the default event loop implementation (level
// triggered), so we can ignore platforms not supporting this (HHVM).
if (function_exists('stream_set_read_buffer')) {
- stream_set_read_buffer($inotify, 0);
+ stream_set_read_buffer($inotify, 1);
}
$this->inotify = $inotify;
|
|
Tests (8.3):
src/InotifyStream.php#L70
Escaped Mutant for Mutator "DecrementInteger":
@@ @@
// This does not affect the default event loop implementation (level
// triggered), so we can ignore platforms not supporting this (HHVM).
if (function_exists('stream_set_read_buffer')) {
- stream_set_read_buffer($inotify, 0);
+ stream_set_read_buffer($inotify, -1);
}
$this->inotify = $inotify;
|
|
Tests (8.3):
src/InotifyStream.php#L69
Escaped Mutant for Mutator "IfNegation":
@@ @@
// trigger events on (edge triggered).
// This does not affect the default event loop implementation (level
// triggered), so we can ignore platforms not supporting this (HHVM).
- if (function_exists('stream_set_read_buffer')) {
+ if (!function_exists('stream_set_read_buffer')) {
stream_set_read_buffer($inotify, 0);
}
|
|
Tests (8.3):
src/InotifyStream.php#L57
Escaped Mutant for Mutator "FalseValue":
@@ @@
// this class relies on non-blocking I/O in order to not interrupt
// the event loop e.g. pipes on Windows do not support this:
// https://bugs.php.net/bug.php?id=47918
- if (stream_set_blocking($inotify, false) !== true) {
+ if (stream_set_blocking($inotify, true) !== true) {
throw new RuntimeException(
'Unable to set stream resource to non-blocking mode'
);
|
|
Tests (8.3):
src/InotifyStream.php#L46
Escaped Mutant for Mutator "LogicalOr":
@@ @@
$inotify = inotify_init();
if (
- !is_resource($inotify) ||
- get_resource_type($inotify) !== 'stream'
+ !is_resource($inotify) && get_resource_type($inotify) !== 'stream'
) {
throw new InvalidArgumentException(
'Call to `inotify_init()` did not succeed'
|
|
Tests (8.3)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
|
Tests (8.0)
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/cache@v4, actions/checkout@v4, codecov/codecov-action@v1. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
Tests (8.0):
src/InotifyStream.php#L87
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
fclose($this->inotify);
}
$this->emit('close');
- $this->removeAllListeners();
+
}
/**
* @return false|int<1, max>
|
|
Tests (8.0):
src/InotifyStream.php#L81
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
}
public function __destruct()
{
- $this->loop->removeReadStream($this->inotify);
+
if (is_resource($this->inotify)) {
fclose($this->inotify);
}
|
|
Tests (8.0):
src/InotifyStream.php#L76
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
}
$this->inotify = $inotify;
$this->loop = $loop ?? \React\EventLoop\Loop::get();
- $this->loop->addReadStream($this->inotify, [$this, 'handleData']);
+
}
public function __destruct()
{
|
|
Tests (8.0):
src/InotifyStream.php#L76
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
}
$this->inotify = $inotify;
$this->loop = $loop ?? \React\EventLoop\Loop::get();
- $this->loop->addReadStream($this->inotify, [$this, 'handleData']);
+ $this->loop->addReadStream($this->inotify, ['handleData']);
}
public function __destruct()
{
|
|
Tests (8.0):
src/InotifyStream.php#L74
Escaped Mutant for Mutator "Coalesce":
--- Original
+++ New
@@ @@
stream_set_read_buffer($inotify, 0);
}
$this->inotify = $inotify;
- $this->loop = $loop ?? \React\EventLoop\Loop::get();
+ $this->loop = \React\EventLoop\Loop::get() ?? $loop;
$this->loop->addReadStream($this->inotify, [$this, 'handleData']);
}
public function __destruct()
|
|
Tests (8.0):
src/InotifyStream.php#L70
Escaped Mutant for Mutator "FunctionCallRemoval":
--- Original
+++ New
@@ @@
// This does not affect the default event loop implementation (level
// triggered), so we can ignore platforms not supporting this (HHVM).
if (function_exists('stream_set_read_buffer')) {
- stream_set_read_buffer($inotify, 0);
+
}
$this->inotify = $inotify;
$this->loop = $loop ?? \React\EventLoop\Loop::get();
|
|
Tests (8.0):
src/InotifyStream.php#L70
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
// This does not affect the default event loop implementation (level
// triggered), so we can ignore platforms not supporting this (HHVM).
if (function_exists('stream_set_read_buffer')) {
- stream_set_read_buffer($inotify, 0);
+ stream_set_read_buffer($inotify, 1);
}
$this->inotify = $inotify;
$this->loop = $loop ?? \React\EventLoop\Loop::get();
|
|
Tests (8.0):
src/InotifyStream.php#L70
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
// This does not affect the default event loop implementation (level
// triggered), so we can ignore platforms not supporting this (HHVM).
if (function_exists('stream_set_read_buffer')) {
- stream_set_read_buffer($inotify, 0);
+ stream_set_read_buffer($inotify, -1);
}
$this->inotify = $inotify;
$this->loop = $loop ?? \React\EventLoop\Loop::get();
|
|
Tests (8.0):
src/InotifyStream.php#L57
Escaped Mutant for Mutator "FalseValue":
--- Original
+++ New
@@ @@
// this class relies on non-blocking I/O in order to not interrupt
// the event loop e.g. pipes on Windows do not support this:
// https://bugs.php.net/bug.php?id=47918
- if (stream_set_blocking($inotify, false) !== true) {
+ if (stream_set_blocking($inotify, true) !== true) {
throw new RuntimeException('Unable to set stream resource to non-blocking mode');
}
// Use unbuffered read operations on the underlying stream resource.
|
|
Tests (8.0):
src/InotifyStream.php#L46
Escaped Mutant for Mutator "LogicalOr":
--- Original
+++ New
@@ @@
public function __construct(?LoopInterface $loop = null)
{
$inotify = inotify_init();
- if (!is_resource($inotify) || get_resource_type($inotify) !== 'stream') {
+ if (!is_resource($inotify) && get_resource_type($inotify) !== 'stream') {
throw new InvalidArgumentException('Call to `inotify_init()` did not succeed');
}
// this class relies on non-blocking I/O in order to not interrupt
|
|
Tests (8.0)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
|
Tests (8.1)
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/cache@v4, actions/checkout@v4, codecov/codecov-action@v1. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
Tests (8.1):
src/InotifyStream.php#L81
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
}
public function __destruct()
{
- $this->loop->removeReadStream($this->inotify);
+
if (is_resource($this->inotify)) {
fclose($this->inotify);
}
|
|
Tests (8.1):
src/InotifyStream.php#L76
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
}
$this->inotify = $inotify;
$this->loop = $loop ?? \React\EventLoop\Loop::get();
- $this->loop->addReadStream($this->inotify, [$this, 'handleData']);
+
}
public function __destruct()
{
|
|
Tests (8.1):
src/InotifyStream.php#L76
Escaped Mutant for Mutator "ArrayItemRemoval":
@@ @@
}
$this->inotify = $inotify;
$this->loop = $loop ?? \React\EventLoop\Loop::get();
- $this->loop->addReadStream($this->inotify, [$this, 'handleData']);
+ $this->loop->addReadStream($this->inotify, ['handleData']);
}
public function __destruct()
{
|
|
Tests (8.1):
src/InotifyStream.php#L74
Escaped Mutant for Mutator "Coalesce":
@@ @@
stream_set_read_buffer($inotify, 0);
}
$this->inotify = $inotify;
- $this->loop = $loop ?? \React\EventLoop\Loop::get();
+ $this->loop = \React\EventLoop\Loop::get() ?? $loop;
$this->loop->addReadStream($this->inotify, [$this, 'handleData']);
}
public function __destruct()
|
|
Tests (8.1):
src/InotifyStream.php#L70
Escaped Mutant for Mutator "FunctionCallRemoval":
@@ @@
// This does not affect the default event loop implementation (level
// triggered), so we can ignore platforms not supporting this (HHVM).
if (function_exists('stream_set_read_buffer')) {
- stream_set_read_buffer($inotify, 0);
+
}
$this->inotify = $inotify;
$this->loop = $loop ?? \React\EventLoop\Loop::get();
|
|
Tests (8.1):
src/InotifyStream.php#L70
Escaped Mutant for Mutator "IncrementInteger":
@@ @@
// This does not affect the default event loop implementation (level
// triggered), so we can ignore platforms not supporting this (HHVM).
if (function_exists('stream_set_read_buffer')) {
- stream_set_read_buffer($inotify, 0);
+ stream_set_read_buffer($inotify, 1);
}
$this->inotify = $inotify;
$this->loop = $loop ?? \React\EventLoop\Loop::get();
|
|
Tests (8.1):
src/InotifyStream.php#L70
Escaped Mutant for Mutator "DecrementInteger":
@@ @@
// This does not affect the default event loop implementation (level
// triggered), so we can ignore platforms not supporting this (HHVM).
if (function_exists('stream_set_read_buffer')) {
- stream_set_read_buffer($inotify, 0);
+ stream_set_read_buffer($inotify, -1);
}
$this->inotify = $inotify;
$this->loop = $loop ?? \React\EventLoop\Loop::get();
|
|
Tests (8.1):
src/InotifyStream.php#L69
Escaped Mutant for Mutator "IfNegation":
@@ @@
// trigger events on (edge triggered).
// This does not affect the default event loop implementation (level
// triggered), so we can ignore platforms not supporting this (HHVM).
- if (function_exists('stream_set_read_buffer')) {
+ if (!function_exists('stream_set_read_buffer')) {
stream_set_read_buffer($inotify, 0);
}
$this->inotify = $inotify;
|
|
Tests (8.1):
src/InotifyStream.php#L57
Escaped Mutant for Mutator "FalseValue":
@@ @@
// this class relies on non-blocking I/O in order to not interrupt
// the event loop e.g. pipes on Windows do not support this:
// https://bugs.php.net/bug.php?id=47918
- if (stream_set_blocking($inotify, false) !== true) {
+ if (stream_set_blocking($inotify, true) !== true) {
throw new RuntimeException('Unable to set stream resource to non-blocking mode');
}
// Use unbuffered read operations on the underlying stream resource.
|
|
Tests (8.1):
src/InotifyStream.php#L46
Escaped Mutant for Mutator "LogicalOr":
@@ @@
public function __construct(?LoopInterface $loop = null)
{
$inotify = inotify_init();
- if (!is_resource($inotify) || get_resource_type($inotify) !== 'stream') {
+ if (!is_resource($inotify) && get_resource_type($inotify) !== 'stream') {
throw new InvalidArgumentException('Call to `inotify_init()` did not succeed');
}
// this class relies on non-blocking I/O in order to not interrupt
|
|
Tests (8.1)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
|
Tests (8.4)
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/cache@v4, actions/checkout@v4, codecov/codecov-action@v1. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
Tests (8.4):
src/InotifyStream.php#L81
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
public function __destruct()
{
- $this->loop->removeReadStream($this->inotify);
+
if (is_resource($this->inotify)) {
fclose($this->inotify);
|
|
Tests (8.4):
src/InotifyStream.php#L76
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
$this->inotify = $inotify;
$this->loop = $loop ?? \React\EventLoop\Loop::get();
- $this->loop->addReadStream($this->inotify, [$this, 'handleData']);
+
}
public function __destruct()
|
|
Tests (8.4):
src/InotifyStream.php#L76
Escaped Mutant for Mutator "ArrayItemRemoval":
@@ @@
$this->inotify = $inotify;
$this->loop = $loop ?? \React\EventLoop\Loop::get();
- $this->loop->addReadStream($this->inotify, [$this, 'handleData']);
+ $this->loop->addReadStream($this->inotify, ['handleData']);
}
public function __destruct()
|
|
Tests (8.4):
src/InotifyStream.php#L74
Escaped Mutant for Mutator "Coalesce":
@@ @@
}
$this->inotify = $inotify;
- $this->loop = $loop ?? \React\EventLoop\Loop::get();
+ $this->loop = \React\EventLoop\Loop::get() ?? $loop;
$this->loop->addReadStream($this->inotify, [$this, 'handleData']);
}
|
|
Tests (8.4):
src/InotifyStream.php#L70
Escaped Mutant for Mutator "FunctionCallRemoval":
@@ @@
// This does not affect the default event loop implementation (level
// triggered), so we can ignore platforms not supporting this (HHVM).
if (function_exists('stream_set_read_buffer')) {
- stream_set_read_buffer($inotify, 0);
+
}
$this->inotify = $inotify;
|
|
Tests (8.4):
src/InotifyStream.php#L70
Escaped Mutant for Mutator "IncrementInteger":
@@ @@
// This does not affect the default event loop implementation (level
// triggered), so we can ignore platforms not supporting this (HHVM).
if (function_exists('stream_set_read_buffer')) {
- stream_set_read_buffer($inotify, 0);
+ stream_set_read_buffer($inotify, 1);
}
$this->inotify = $inotify;
|
|
Tests (8.4):
src/InotifyStream.php#L70
Escaped Mutant for Mutator "DecrementInteger":
@@ @@
// This does not affect the default event loop implementation (level
// triggered), so we can ignore platforms not supporting this (HHVM).
if (function_exists('stream_set_read_buffer')) {
- stream_set_read_buffer($inotify, 0);
+ stream_set_read_buffer($inotify, -1);
}
$this->inotify = $inotify;
|
|
Tests (8.4):
src/InotifyStream.php#L69
Escaped Mutant for Mutator "IfNegation":
@@ @@
// trigger events on (edge triggered).
// This does not affect the default event loop implementation (level
// triggered), so we can ignore platforms not supporting this (HHVM).
- if (function_exists('stream_set_read_buffer')) {
+ if (!function_exists('stream_set_read_buffer')) {
stream_set_read_buffer($inotify, 0);
}
|
|
Tests (8.4):
src/InotifyStream.php#L57
Escaped Mutant for Mutator "FalseValue":
@@ @@
// this class relies on non-blocking I/O in order to not interrupt
// the event loop e.g. pipes on Windows do not support this:
// https://bugs.php.net/bug.php?id=47918
- if (stream_set_blocking($inotify, false) !== true) {
+ if (stream_set_blocking($inotify, true) !== true) {
throw new RuntimeException(
'Unable to set stream resource to non-blocking mode'
);
|
|
Tests (8.4):
src/InotifyStream.php#L46
Escaped Mutant for Mutator "LogicalOr":
@@ @@
$inotify = inotify_init();
if (
- !is_resource($inotify) ||
- get_resource_type($inotify) !== 'stream'
+ !is_resource($inotify) && get_resource_type($inotify) !== 'stream'
) {
throw new InvalidArgumentException(
'Call to `inotify_init()` did not succeed'
|
|
Tests (8.4)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
|
Tests (8.5)
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/cache@v4, actions/checkout@v4, codecov/codecov-action@v1. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
Tests (8.5):
src/InotifyStream.php#L81
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
public function __destruct()
{
- $this->loop->removeReadStream($this->inotify);
+
if (is_resource($this->inotify)) {
fclose($this->inotify);
|
|
Tests (8.5):
src/InotifyStream.php#L76
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
$this->inotify = $inotify;
$this->loop = $loop ?? \React\EventLoop\Loop::get();
- $this->loop->addReadStream($this->inotify, [$this, 'handleData']);
+
}
public function __destruct()
|
|
Tests (8.5):
src/InotifyStream.php#L76
Escaped Mutant for Mutator "ArrayItemRemoval":
@@ @@
$this->inotify = $inotify;
$this->loop = $loop ?? \React\EventLoop\Loop::get();
- $this->loop->addReadStream($this->inotify, [$this, 'handleData']);
+ $this->loop->addReadStream($this->inotify, ['handleData']);
}
public function __destruct()
|
|
Tests (8.5):
src/InotifyStream.php#L74
Escaped Mutant for Mutator "Coalesce":
@@ @@
}
$this->inotify = $inotify;
- $this->loop = $loop ?? \React\EventLoop\Loop::get();
+ $this->loop = \React\EventLoop\Loop::get() ?? $loop;
$this->loop->addReadStream($this->inotify, [$this, 'handleData']);
}
|
|
Tests (8.5):
src/InotifyStream.php#L70
Escaped Mutant for Mutator "FunctionCallRemoval":
@@ @@
// This does not affect the default event loop implementation (level
// triggered), so we can ignore platforms not supporting this (HHVM).
if (function_exists('stream_set_read_buffer')) {
- stream_set_read_buffer($inotify, 0);
+
}
$this->inotify = $inotify;
|
|
Tests (8.5):
src/InotifyStream.php#L70
Escaped Mutant for Mutator "IncrementInteger":
@@ @@
// This does not affect the default event loop implementation (level
// triggered), so we can ignore platforms not supporting this (HHVM).
if (function_exists('stream_set_read_buffer')) {
- stream_set_read_buffer($inotify, 0);
+ stream_set_read_buffer($inotify, 1);
}
$this->inotify = $inotify;
|
|
Tests (8.5):
src/InotifyStream.php#L70
Escaped Mutant for Mutator "DecrementInteger":
@@ @@
// This does not affect the default event loop implementation (level
// triggered), so we can ignore platforms not supporting this (HHVM).
if (function_exists('stream_set_read_buffer')) {
- stream_set_read_buffer($inotify, 0);
+ stream_set_read_buffer($inotify, -1);
}
$this->inotify = $inotify;
|
|
Tests (8.5):
src/InotifyStream.php#L69
Escaped Mutant for Mutator "IfNegation":
@@ @@
// trigger events on (edge triggered).
// This does not affect the default event loop implementation (level
// triggered), so we can ignore platforms not supporting this (HHVM).
- if (function_exists('stream_set_read_buffer')) {
+ if (!function_exists('stream_set_read_buffer')) {
stream_set_read_buffer($inotify, 0);
}
|
|
Tests (8.5):
src/InotifyStream.php#L57
Escaped Mutant for Mutator "FalseValue":
@@ @@
// this class relies on non-blocking I/O in order to not interrupt
// the event loop e.g. pipes on Windows do not support this:
// https://bugs.php.net/bug.php?id=47918
- if (stream_set_blocking($inotify, false) !== true) {
+ if (stream_set_blocking($inotify, true) !== true) {
throw new RuntimeException(
'Unable to set stream resource to non-blocking mode'
);
|
|
Tests (8.5):
src/InotifyStream.php#L46
Escaped Mutant for Mutator "LogicalOr":
@@ @@
$inotify = inotify_init();
if (
- !is_resource($inotify) ||
- get_resource_type($inotify) !== 'stream'
+ !is_resource($inotify) && get_resource_type($inotify) !== 'stream'
) {
throw new InvalidArgumentException(
'Call to `inotify_init()` did not succeed'
|
|
Tests (8.5)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
|
Tests (8.2)
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/cache@v4, actions/checkout@v4, codecov/codecov-action@v1. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
Tests (8.2):
src/InotifyStream.php#L81
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
public function __destruct()
{
- $this->loop->removeReadStream($this->inotify);
+
if (is_resource($this->inotify)) {
fclose($this->inotify);
|
|
Tests (8.2):
src/InotifyStream.php#L76
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
$this->inotify = $inotify;
$this->loop = $loop ?? \React\EventLoop\Loop::get();
- $this->loop->addReadStream($this->inotify, [$this, 'handleData']);
+
}
public function __destruct()
|
|
Tests (8.2):
src/InotifyStream.php#L76
Escaped Mutant for Mutator "ArrayItemRemoval":
@@ @@
$this->inotify = $inotify;
$this->loop = $loop ?? \React\EventLoop\Loop::get();
- $this->loop->addReadStream($this->inotify, [$this, 'handleData']);
+ $this->loop->addReadStream($this->inotify, ['handleData']);
}
public function __destruct()
|
|
Tests (8.2):
src/InotifyStream.php#L74
Escaped Mutant for Mutator "Coalesce":
@@ @@
}
$this->inotify = $inotify;
- $this->loop = $loop ?? \React\EventLoop\Loop::get();
+ $this->loop = \React\EventLoop\Loop::get() ?? $loop;
$this->loop->addReadStream($this->inotify, [$this, 'handleData']);
}
|
|
Tests (8.2):
src/InotifyStream.php#L70
Escaped Mutant for Mutator "FunctionCallRemoval":
@@ @@
// This does not affect the default event loop implementation (level
// triggered), so we can ignore platforms not supporting this (HHVM).
if (function_exists('stream_set_read_buffer')) {
- stream_set_read_buffer($inotify, 0);
+
}
$this->inotify = $inotify;
|
|
Tests (8.2):
src/InotifyStream.php#L70
Escaped Mutant for Mutator "IncrementInteger":
@@ @@
// This does not affect the default event loop implementation (level
// triggered), so we can ignore platforms not supporting this (HHVM).
if (function_exists('stream_set_read_buffer')) {
- stream_set_read_buffer($inotify, 0);
+ stream_set_read_buffer($inotify, 1);
}
$this->inotify = $inotify;
|
|
Tests (8.2):
src/InotifyStream.php#L70
Escaped Mutant for Mutator "DecrementInteger":
@@ @@
// This does not affect the default event loop implementation (level
// triggered), so we can ignore platforms not supporting this (HHVM).
if (function_exists('stream_set_read_buffer')) {
- stream_set_read_buffer($inotify, 0);
+ stream_set_read_buffer($inotify, -1);
}
$this->inotify = $inotify;
|
|
Tests (8.2):
src/InotifyStream.php#L69
Escaped Mutant for Mutator "IfNegation":
@@ @@
// trigger events on (edge triggered).
// This does not affect the default event loop implementation (level
// triggered), so we can ignore platforms not supporting this (HHVM).
- if (function_exists('stream_set_read_buffer')) {
+ if (!function_exists('stream_set_read_buffer')) {
stream_set_read_buffer($inotify, 0);
}
|
|
Tests (8.2):
src/InotifyStream.php#L57
Escaped Mutant for Mutator "FalseValue":
@@ @@
// this class relies on non-blocking I/O in order to not interrupt
// the event loop e.g. pipes on Windows do not support this:
// https://bugs.php.net/bug.php?id=47918
- if (stream_set_blocking($inotify, false) !== true) {
+ if (stream_set_blocking($inotify, true) !== true) {
throw new RuntimeException(
'Unable to set stream resource to non-blocking mode'
);
|
|
Tests (8.2):
src/InotifyStream.php#L46
Escaped Mutant for Mutator "LogicalOr":
@@ @@
$inotify = inotify_init();
if (
- !is_resource($inotify) ||
- get_resource_type($inotify) !== 'stream'
+ !is_resource($inotify) && get_resource_type($inotify) !== 'stream'
) {
throw new InvalidArgumentException(
'Call to `inotify_init()` did not succeed'
|
|
Tests (8.2)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
|
Analysis (8.5)
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/cache@v4, actions/checkout@v4. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
Analysis (8.5)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|