Skip to content

TASK: Harmonize semantics of Neos\Utility\TypeHandling with PHP 8 typ…#3567

Open
vcg-development wants to merge 3 commits into
neos:9.2from
vcg-development:task/harmonizeSemantics
Open

TASK: Harmonize semantics of Neos\Utility\TypeHandling with PHP 8 typ…#3567
vcg-development wants to merge 3 commits into
neos:9.2from
vcg-development:task/harmonizeSemantics

Conversation

@vcg-development

Copy link
Copy Markdown

FIXES: #2945

@vcg-development
vcg-development changed the base branch from 8.3 to 9.2 June 5, 2026 11:30
@github-actions github-actions Bot added 9.2 and removed 8.3 labels Jun 5, 2026
@kdambekalns

Copy link
Copy Markdown
Member

This looks like the wrong target branch was selected – too many commits in the PR.

…e system semantics

Use new Harmonized semantics in Reflection Service
@vcg-development
vcg-development force-pushed the task/harmonizeSemantics branch from 93f7b5e to 1b128bd Compare June 5, 2026 11:53
Comment on lines +33 to +47
/**
* A type pattern to detect scalar types.
*/
const SCALAR_TYPE_PATTERN = '/^(?:int|float|bool|string)$/';

/**
* @var array<string>
*/
protected static $builtInTypes = ['null', 'array', 'object', 'resource', 'never', 'void', 'self', 'parent', 'static'];

/**
* @var array<string>
*/
protected static $builtInTypeAliases = ['mixed', 'iterable'];

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder about the mix here between regex and array configuration.

Fix check if backslash is already present at
start of string in reflectClassMethod leading
slash check
@vcg-development

Copy link
Copy Markdown
Author

I think I am not informed enough to decide how the code should function here. Could someone else please take over this PR that has more theoretical knowledge of how php works here and knows how the reflections should be handled here.

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.

TASK: Harmonize semantics of Neos\Utility\TypeHandling with PHP 8 type system semantics

4 participants