You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using PHP version 8.1.0, it looks as though the Vector class is no longer compatible with the Iterator and ArrayAccess interfaces. I think the incompatibility is solely due to unspecified return types (see errors below -received when instantiating a Vector in a test).
I can add the return types myself, but thought maybe someone else may want to know.
Deprecated: Return type of MathPHP\LinearAlgebra\Vector::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/vagrant/matrixstiffness_v0.3/vendor/markrogoyski/math-php/src/LinearAlgebra/Vector.php on line 807
Deprecated: Return type of MathPHP\LinearAlgebra\Vector::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /.../vendor/markrogoyski/math-php/src/LinearAlgebra/Vector.php on line 812
Deprecated: Return type of MathPHP\LinearAlgebra\Vector::offsetGet($i) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /.../vendor/markrogoyski/math-php/src/LinearAlgebra/Vector.php on line 762
Deprecated: Return type of MathPHP\LinearAlgebra\Vector::offsetSet($i, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /.../vendor/markrogoyski/math-php/src/LinearAlgebra/Vector.php on line 772
Deprecated: Return type of MathPHP\LinearAlgebra\Vector::offsetUnset($i) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /.../vendor/markrogoyski/math-php/src/LinearAlgebra/Vector.php on line 781
The text was updated successfully, but these errors were encountered:
Thank you for your interest in MathPHP and reporting this issue. This has been addressed in the latest release v2.6.0, as well as some other PHP 8.1 compatibility issues.
Thanks again for the feedback and helping to improve MathPHP.
Using PHP version 8.1.0, it looks as though the Vector class is no longer compatible with the Iterator and ArrayAccess interfaces. I think the incompatibility is solely due to unspecified return types (see errors below -received when instantiating a Vector in a test).
I can add the return types myself, but thought maybe someone else may want to know.
The text was updated successfully, but these errors were encountered: