+
Skip to content

Conversation

alongosz
Copy link
Member

@alongosz alongosz commented Jul 8, 2025

🎫 Issue IBX-9727

Description:

Fixed strict types of IO contracts and related implementations. Improved affected code.
The changes slightly overlap with Ibexa\Bundle\Core\Imagine, however full refactoring of that namespace I'm gonna leave for later. The diff is already a bit too big.

For QA:

For Documentation:

Breaking v5.0.1 changes:

The contracts of the following interface received explicit strict types:

  • \Ibexa\Contracts\Core\IO\MimeTypeDetector

The following contract classes' properties received explicit strict types:

  • \Ibexa\Contracts\Core\IO\BinaryFile
  • \Ibexa\Contracts\Core\IO\BinaryFileCreateStruct

Full BC report using Roave/BackwardCompatibilityCheck:
https://gist.github.com/alongosz/11c82bcba6f3dc34574f00d32bf67c7d
(though we don't promise BC on non-contract namespaces, so that might not be very usable).

@alongosz alongosz requested a review from adamwojs July 21, 2025 15:50
@alongosz alongosz force-pushed the ibx-9727-strict-types-io branch from 203acad to 193bee5 Compare July 25, 2025 07:56
@adamwojs adamwojs force-pushed the ibx-9727-strict-types-io branch from 193bee5 to 72a596b Compare July 30, 2025 06:44
@micszo micszo self-assigned this Aug 4, 2025
alongosz and others added 21 commits August 6, 2025 14:18
* Added missing strict type hints and improved \Ibexa\Bundle\IO\EventListener\StreamFileListener
Co-Authored-By: Adam Wójs <adamwojs@users.noreply.github.com>
* Added missing type hints to:
  - \Ibexa\Tests\Bundle\IO\DependencyInjection\ConfigurationFactoryTestCase
  - \Ibexa\Tests\Bundle\IO\DependencyInjection\ConfigurationFactory\BinarydataHandler\FlysystemTest
  - \Ibexa\Tests\Bundle\IO\DependencyInjection\ConfigurationFactory\MetadataHandler\FlysystemTest
  - \Ibexa\Tests\Bundle\IO\DependencyInjection\ConfigurationFactory\BaseFlysystemTestCase

* Fixed broken \Ibexa\Tests\Bundle\IO\DependencyInjection\ConfigurationFactory\MetadataHandler\FlysystemTest

* Improved \Ibexa\Tests\Bundle\IO\DependencyInjection\ConfigurationFactory\BaseFlysystemTestCase
@alongosz alongosz force-pushed the ibx-9727-strict-types-io branch from 72a596b to c824970 Compare August 6, 2025 12:19
Copy link

sonarqubecloud bot commented Aug 6, 2025

@alongosz
Copy link
Member Author

alongosz commented Aug 6, 2025

Update: rebased to align with the main upstream and applied last code review remarks (cosmetic changes, no re-testing needed).
Merging into 5.0.1 once CI is green.

@alongosz alongosz added the Doc needed The changes require some documentation label Aug 6, 2025
@alongosz alongosz merged commit 8f1f61e into main Aug 6, 2025
17 checks passed
@alongosz alongosz deleted the ibx-9727-strict-types-io branch August 6, 2025 13:29
@mnocon mnocon removed the Doc needed The changes require some documentation label Sep 23, 2025
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.

7 participants

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载