When using the tensor PHP extension with PHP 8.1, at startup PHP displays the warnings reported at #28
For example. by simply running an empty PHP code, here's what we have:
Deprecated: Return type of Tensor\Vector::offsetGet($index) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in Unknown on line 0
Deprecated: Return type of Tensor\Vector::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in Unknown on line 0
Deprecated: Return type of Tensor\Matrix::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in Unknown on line 0
When using the tensor PHP extension with PHP 8.1, at startup PHP displays the warnings reported at #28
For example. by simply running an empty PHP code, here's what we have:
What about making it so tests fails in this case?