Skip to content

Conversation

@AJenbo
Copy link

@AJenbo AJenbo commented May 3, 2025

The main motivation for this PR is to document when a simple list is returned rather then a sparse array. This lets the consumer know that if count($data) > 4 then keys 0-3 exists allowing for simpler and safe data handeling.

Additionally this upgrade PHPStan to 2.1 (from 1.12) and resolves all new issues detected by the upgraded tool.

@AJenbo
Copy link
Author

AJenbo commented May 3, 2025

Ping @emicha & @BushraAsif

@BushraAsif BushraAsif changed the base branch from main to narrow-array-types June 10, 2025 11:48
@BushraAsif BushraAsif merged commit 300ff2e into AltaPay:narrow-array-types Jun 10, 2025
1 check passed
@AJenbo AJenbo deleted the list branch June 10, 2025 14:53
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.

2 participants