Page MenuHomeDevCentral

Restrict return type
ClosedPublic

Authored by dereckson on Oct 22 2025, 21:10.
Tags
None
Referenced Files
F23795339: D3802.id9846.diff
Fri, Feb 6, 19:51
Unknown Object (File)
Fri, Feb 6, 03:58
Unknown Object (File)
Thu, Feb 5, 19:27
Unknown Object (File)
Thu, Feb 5, 19:20
Unknown Object (File)
Tue, Feb 3, 10:41
Unknown Object (File)
Tue, Feb 3, 05:53
Unknown Object (File)
Tue, Feb 3, 04:49
Unknown Object (File)
Tue, Feb 3, 01:57
Subscribers
None

Details

Summary

When the parent class uses mixed as return type, PHP inheritance model
allows to specify a more precise type in extended classes.

Diff Detail

Repository
rKERUALD Keruald libraries development repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable