Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix php8.4 deprecated notices #485

Merged
merged 1 commit into from
Jan 14, 2025
Merged

Conversation

it-can
Copy link
Contributor

@it-can it-can commented Jan 13, 2025

Fixes

PHP Deprecated:  MathPHP\Statistics\Multivariate\PCA::standardizeData(): Implicitly marking parameter $new_data as nullable is deprecated, the explicit nullable type must be used instead in ./src/Statistics/Multivariate/PCA.php on line 109
PHP Deprecated:  MathPHP\Statistics\Multivariate\PCA::getScores(): Implicitly marking parameter $new_data as nullable is deprecated, the explicit nullable type must be used instead in ./src/Statistics/Multivariate/PCA.php on line 167
PHP Deprecated:  MathPHP\Statistics\Multivariate\PCA::getQResiduals(): Implicitly marking parameter $new_data as nullable is deprecated, the explicit nullable type must be used instead in ./src/Statistics/Multivariate/PCA.php on line 223
PHP Deprecated:  MathPHP\Statistics\Multivariate\PCA::getT2Distances(): Implicitly marking parameter $new_data as nullable is deprecated, the explicit nullable type must be used instead in ./src/Statistics/Multivariate/PCA.php on line 268
PHP Deprecated:  MathPHP\Statistics\KernelDensityEstimation::__construct(): Implicitly marking parameter $h as nullable is deprecated, the explicit nullable type must be used instead in ./src/Statistics/KernelDensityEstimation.php on line 52
PHP Deprecated:  MathPHP\Statistics\KernelDensityEstimation::setBandwidth(): Implicitly marking parameter $h as nullable is deprecated, the explicit nullable type must be used instead in ./src/Statistics/KernelDensityEstimation.php on line 71
PHP Deprecated:  MathPHP\Statistics\Distance::mahalanobis(): Implicitly marking parameter $y as nullable is deprecated, the explicit nullable type must be used instead in ./src/Statistics/Distance.php on line 194
PHP Deprecated:  MathPHP\Probability\Combinatorics::permutations(): Implicitly marking parameter $k as nullable is deprecated, the explicit nullable type must be used instead in ./src/Probability/Combinatorics.php on line 231
PHP Deprecated:  MathPHP\Functions\BaseEncoderDecoder::createArbitraryInteger(): Implicitly marking parameter $offset as nullable is deprecated, the explicit nullable type must be used instead in ./src/Functions/BaseEncoderDecoder.php on line 94
PHP Deprecated:  MathPHP\LinearAlgebra\NumericMatrix::eigenvalues(): Implicitly marking parameter $method as nullable is deprecated, the explicit nullable type must be used instead in ./src/LinearAlgebra/NumericMatrix.php on line 3032
PHP Deprecated:  MathPHP\LinearAlgebra\NumericMatrix::eigenvectors(): Implicitly marking parameter $method as nullable is deprecated, the explicit nullable type must be used instead in ./src/LinearAlgebra/NumericMatrix.php on line 3071
PHP Deprecated:  MathPHP\LinearAlgebra\MatrixFactory::eye(): Implicitly marking parameter $x as nullable is deprecated, the explicit nullable type must be used instead in ./src/LinearAlgebra/MatrixFactory.php on line 428

@markrogoyski markrogoyski changed the base branch from master to develop January 14, 2025 06:00
@coveralls
Copy link

Coverage Status

coverage: 99.924% (+0.003%) from 99.921%
when pulling b1ccbf3 on it-can:master
into e587bfe on markrogoyski:develop.

@markrogoyski
Copy link
Owner

Thank you for your interest in MathPHP and the PHP 8.4 improvements!

I will include this in the next release in the next few days. Thanks again!

@markrogoyski markrogoyski merged commit c85f142 into markrogoyski:develop Jan 14, 2025
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants