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

Very Minor Simplification to Matrix Functions #2222

Merged
merged 2 commits into from Jul 22, 2021

Conversation

oleibman
Copy link
Collaborator

The external Matrix library has introduced some changes which permit the matrix functions to be slightly simplified.

This is:

- [ ] a bugfix
- [ ] a new feature
- [x] code simplification

Checklist:

Why this change is needed?

The external Matrix library has introduced some changes which permit the matrix functions to be slightly simplified.
@oleibman
Copy link
Collaborator Author

@MarkBaker @PowerKiKi
Any idea what's going wrong with the PHP8.1 setup? Two attempts, same failure both times.
image

@MarkBaker
Copy link
Member

MarkBaker commented Jul 22, 2021

Something in the nightly build has broken composer:

PHP Deprecated:  Return type of Symfony\Component\Console\Helper\HelperSet::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///usr/local/bin/composer/vendor/symfony/console/Helper/HelperSet.php on line 112
Deprecation Notice: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in phar:///usr/local/bin/composer/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Constraint.php:48
Deprecation Notice: Return type of Composer\Repository\ArrayRepository::count() should either be compatible with Countable::count(): int, or the #[ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///usr/local/bin/composer/src/Composer/Repository/ArrayRepository.php:286
Deprecation Notice: Return type of Composer\Repository\ArrayRepository::count() should either be compatible with Countable::count(): int, or the #[ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///usr/local/bin/composer/src/Composer/Repository/WritableArrayRepository.php:286
Deprecation Notice: Return type of Composer\Repository\ArrayRepository::count() should either be compatible with Countable::count(): int, or the #[ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///usr/local/bin/composer/src/Composer/Repository/InstalledFilesystemRepository.php:286
Deprecation Notice: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in phar:///usr/local/bin/composer/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Constraint.php:48
Deprecated: Return type of Symfony\Component\Console\Helper\HelperSet::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///usr/local/bin/composer/vendor/symfony/console/Helper/HelperSet.php on line 112
/home/runner/.cache/composer/files

I'll have to see if Nils and Jordi are aware of it, and if there's a fix in the pipeline

@MarkBaker
Copy link
Member

Looks like Jordi is already aware of the issue #10008 and has created a fix; but the CI runner is using shivammathur's PHP setup, which is daily cached, so hasn't yet picked up the composer fixes... hopefully it should have resolved itself by tomorrow.

I just wish that Github Actions provided a rerun button for failed pipeline tasks, rather than requiring a new push to trigger a run

@MarkBaker
Copy link
Member

shivammathur indicates that he's changed his cache settings for the PHP setup, so it should now be good to pick up the changes to composer for deprecations

@oleibman
Copy link
Collaborator Author

Thanks, it all works now. However, it looks like 8.1 has thrown us a new monkey wrench; need a small fix to Worksheet Iterator (add explicit typehint for return type for valid) before 8.1 goes live.

@oleibman oleibman merged commit 3c5750b into PHPOffice:master Jul 22, 2021
@MarkBaker
Copy link
Member

The good news is that there's a lot less problems (so far) with 8.1 than there were with 8.0

@oleibman oleibman deleted the matrix3 branch August 27, 2021 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants