Skip to content

Modernize the code base#338

Merged
sstok merged 6 commits into
rollersearch:mainfrom
sstok:refactor/modernize
Mar 13, 2026
Merged

Modernize the code base#338
sstok merged 6 commits into
rollersearch:mainfrom
sstok:refactor/modernize

Conversation

@sstok
Copy link
Copy Markdown
Contributor

@sstok sstok commented Mar 12, 2026

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? yes
Tickets
License MIT
  • Add missing property types
  • Use modern callbacks
  • Reduce some code complexity
    • Use match instead of switch
  • Ensure proper serializing error handling
  • Fix changes of type errors
  • Fix order of providers (in tests)
  • Fix wrong file location (test file)

Note: Passing null for grouping and round is deprecated, it's better to make this implicit behavior explicit.

@sstok
Copy link
Copy Markdown
Contributor Author

sstok commented Mar 12, 2026

- api-platform/core[v4.2.0, ..., v4.2.20] require php >=8.2 -> your php version (8.1.34) does not satisfy that requirement.

I guess we can drop support for PHP 8.1, and require PHP 8.2 instead?

@sstok sstok force-pushed the refactor/modernize branch 7 times, most recently from 3765bdc to 88d823c Compare March 12, 2026 20:36
Comment thread lib/Core/Input/CachingInputProcessor.php
@sstok sstok force-pushed the refactor/modernize branch 5 times, most recently from 35ccdbd to 3a4af18 Compare March 13, 2026 12:09
sstok added 6 commits March 13, 2026 13:21
- Use modern callbacks
- Reduce code some complexity
- Use match instead of switch
- Ensure proper serializing error handling
- Fix changes of type errors
- Fix order of providers (in tests)
When no default entity is provided and no default was set
this would have failed with a runtime TypeError
The ordering was not considered part of a condition
being non-empty

Add tests to verify general behavior
@sstok sstok force-pushed the refactor/modernize branch from 3a4af18 to 559d12e Compare March 13, 2026 12:21
@sstok sstok merged commit dfb2940 into rollersearch:main Mar 13, 2026
5 of 7 checks passed
@sstok sstok deleted the refactor/modernize branch March 13, 2026 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant