RubixML / Tensor

A library and extension that provides objects for scientific computing in PHP.
https://rubixml.com
MIT License
232 stars 28 forks source link

Fix tests, restore Alpine tests, fix PHP 8.1+ deprecation warning #39

Closed mlocati closed 1 year ago

mlocati commented 1 year ago

Fix #35

27pchrisl commented 1 year ago

Hi @mlocati, I was checking out this very welcome PR with the code below that segfaults on PHP 8.2 on Ubuntu and MacOS. Was this a 8.2 compatibility fault that this PR will address or is it a different area of work?

<?php

$matrix = Tensor\Matrix::ones(2,2);
$matrix->inverse();

Thankyou!

mlocati commented 1 year ago

Was this a 8.2 compatibility fault that this PR will address or is it a different area of work?

Nope, I just fixed a couple of deprecation warnings about classes extending ArrayAccess / IteratorAggregate

andrewdalpino commented 1 year ago

Thank you @mlocati!