Skip to content

Add strict types to Events::isValidEvent()#69

Open
Jan-Schuppik wants to merge 1 commit intomainfrom
modernize-code-with-breaking-changes
Open

Add strict types to Events::isValidEvent()#69
Jan-Schuppik wants to merge 1 commit intomainfrom
modernize-code-with-breaking-changes

Conversation

@Jan-Schuppik
Copy link

@Jan-Schuppik Jan-Schuppik commented Mar 12, 2026

Add string parameter type and bool return type to isValidEvent(). This is a
breaking change for any classes overriding isValidEvent() without matching type
hints. The following consumers require updates to stay compatible:

ipl-html:

  • src/FormElement/FormElements.php

ipl-web:

  • src/Control/SearchBar.php

notification-web:

  • library/Notifications/Web/Form/ContactForm.php

vspheredb:

  • library/Vspheredb/Web/Form/VCenterShipMetricsForm.php
  • library/Vspheredb/Web/Form/PerfdataConsumerForm.php

This change required adjustments to the following dependencies:
ipl-html:
    - src/FormElement/FormElements.php
ipl-web:
    - src/Control/SearchBar.php
notification-web:
    - library/Notifications/Web/Form/ContactForm.php
vspheredb:
    - library/Vspheredb/Web/Form/VCenterShipMetricsForm.php
    - library/Vspheredb/Web/Form/PerfdataConsumerForm.php
@cla-bot cla-bot bot added the cla/signed label Mar 12, 2026
@Jan-Schuppik Jan-Schuppik changed the title Modernize code with breaking changes Breaking changes in modernize code Mar 13, 2026
@lippserd lippserd changed the title Breaking changes in modernize code Add strict types to Events::isValidEvent() Mar 23, 2026
@lippserd lippserd added this to the v1.0.0 milestone Mar 23, 2026
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.

2 participants