diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-07-30 07:32:58 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-07-30 07:32:58 +0900 |
| commit | 7f3246e4582a488327f2a9da01111db1a4a32b91 (patch) | |
| tree | c37f919e41949d1b482aaae4bedbdd2f65b5baef /src/WebAssembly/Structure/Types | |
| parent | 6f18d4c860f16f094e9b3dececeb47be2a94d585 (diff) | |
| download | php-waddiwasi-7f3246e4582a488327f2a9da01111db1a4a32b91.tar.gz php-waddiwasi-7f3246e4582a488327f2a9da01111db1a4a32b91.tar.zst php-waddiwasi-7f3246e4582a488327f2a9da01111db1a4a32b91.zip | |
chore: enable common ruleset of ecs
Diffstat (limited to 'src/WebAssembly/Structure/Types')
| -rw-r--r-- | src/WebAssembly/Structure/Types/FuncType.php | 2 | ||||
| -rw-r--r-- | src/WebAssembly/Structure/Types/Limits.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/WebAssembly/Structure/Types/FuncType.php b/src/WebAssembly/Structure/Types/FuncType.php index 9ea2434..7932eb5 100644 --- a/src/WebAssembly/Structure/Types/FuncType.php +++ b/src/WebAssembly/Structure/Types/FuncType.php @@ -18,7 +18,7 @@ final readonly class FuncType ) { } - public function equals(FuncType $other): bool + public function equals(self $other): bool { if (count($this->params) !== count($other->params)) { return false; diff --git a/src/WebAssembly/Structure/Types/Limits.php b/src/WebAssembly/Structure/Types/Limits.php index e60b842..74a3409 100644 --- a/src/WebAssembly/Structure/Types/Limits.php +++ b/src/WebAssembly/Structure/Types/Limits.php @@ -18,7 +18,7 @@ final readonly class Limits public function isValid(): bool { - return 0 <= $this->min && + return $this->min >= 0 && ($this->max === null || $this->min <= $this->max); } } |
