Improved MemoryLeakTest #106
continuous-integration.yml
on: push
Matrix: composer-normalize
Matrix: composer-validate
Matrix: infection
Matrix: php-cs-fixer
Matrix: psalm
Matrix: test
Annotations
19 warnings
test (8.2)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
test (8.3)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
test (8.1)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
php-cs-fixer (8.1)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
psalm (8.3)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
psalm (8.1)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
composer-normalize (8.1)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
psalm (8.2)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
infection (8.1)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
infection (8.1):
src/ClassReflection.php#L57
Escaped Mutant for Mutator "MatchArmRemoval":
--- Original
+++ New
@@ @@
{
return match ($name) {
'name' => $this->metadata->name,
- default => new \OutOfBoundsException(sprintf('Property %s::$%s does not exist.', self::class, $name)),
};
}
public function __isset(string $name) : bool
|
infection (8.1):
src/ClassReflection.php#L80
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
* @param class-string<TClass>|null $name
* @return ($name is null ? list<AttributeReflection<object>> : list<AttributeReflection<TClass>>)
*/
- public function getAttributes(?string $name = null, int $flags = 0) : array
+ public function getAttributes(?string $name = null, int $flags = -1) : array
{
if ($this->attributes === null) {
$class = $this->metadata->name;
|
infection (8.1):
src/ClassReflection.php#L103
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
}
public function getConstants(?int $filter = null) : array
{
- $this->loadNative();
+
return parent::getConstants($filter);
}
public function getConstructor() : ?MethodReflection
|
infection (8.1):
src/ClassReflection.php#L115
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
}
public function getDefaultProperties() : array
{
- $this->loadNative();
+
return parent::getDefaultProperties();
}
public function getDocComment() : string|false
|
infection (8.1):
src/ClassReflection.php#L172
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
*/
public function getMethods(?int $filter = null) : array
{
- if ($filter === null || $filter === 0) {
+ if ($filter === null || $filter === -1) {
return array_values($this->getResolvedMethods());
}
return array_values(array_filter($this->getResolvedMethods(), static fn(MethodReflection $method): bool => ($filter & $method->getModifiers()) !== 0));
|
infection (8.1):
src/ClassReflection.php#L176
Escaped Mutant for Mutator "UnwrapArrayValues":
--- Original
+++ New
@@ @@
if ($filter === null || $filter === 0) {
return array_values($this->getResolvedMethods());
}
- return array_values(array_filter($this->getResolvedMethods(), static fn(MethodReflection $method): bool => ($filter & $method->getModifiers()) !== 0));
+ return array_filter($this->getResolvedMethods(), static fn(MethodReflection $method): bool => ($filter & $method->getModifiers()) !== 0);
}
public function getModifiers() : int
{
|
infection (8.1):
src/ClassReflection.php#L217
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
*/
public function getProperties(?int $filter = null) : array
{
- if ($filter === null || $filter === 0) {
+ if ($filter === null || $filter === -1) {
return array_values($this->getResolvedProperties());
}
return array_values(array_filter($this->getResolvedProperties(), static fn(PropertyReflection $property): bool => ($filter & $property->getModifiers()) !== 0));
|
infection (8.1):
src/ClassReflection.php#L218
Escaped Mutant for Mutator "UnwrapArrayValues":
--- Original
+++ New
@@ @@
public function getProperties(?int $filter = null) : array
{
if ($filter === null || $filter === 0) {
- return array_values($this->getResolvedProperties());
+ return $this->getResolvedProperties();
}
return array_values(array_filter($this->getResolvedProperties(), static fn(PropertyReflection $property): bool => ($filter & $property->getModifiers()) !== 0));
}
|
infection (8.1):
src/ClassReflection.php#L221
Escaped Mutant for Mutator "UnwrapArrayValues":
--- Original
+++ New
@@ @@
if ($filter === null || $filter === 0) {
return array_values($this->getResolvedProperties());
}
- return array_values(array_filter($this->getResolvedProperties(), static fn(PropertyReflection $property): bool => ($filter & $property->getModifiers()) !== 0));
+ return array_filter($this->getResolvedProperties(), static fn(PropertyReflection $property): bool => ($filter & $property->getModifiers()) !== 0);
}
public function getProperty(string $name) : PropertyReflection
{
|
infection (8.1):
src/ClassReflection.php#L241
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
}
public function getReflectionConstants(?int $filter = null) : array
{
- $this->loadNative();
+
return parent::getReflectionConstants($filter);
}
public function getShortName() : string
|