Skip to content

Support for scalar_objects php extension #378

Closed
@still-dreaming-1

Description

@still-dreaming-1

I just started using this extension today, and I am absolutely floored at how well it works! I definitely expect to pay for premium when the free trial runs out. Anyway, the main thing it is lacking for me is, understanding code that utilizes the scalar_objects php extension. This extension enables a syntax where it looks like you can call "methods" on values with built in types, such as string and int. So you can have code like $myString->sub(0, 1); Currently phptools always shows "Call to a member function sub() on a non-object of type stringPHP(PHP0404)" for these calls.

I realize it is a big ask to want support for a specific, non-standard php extension. This php extension is one of the keys to keeping php usable and nice for me. It works well even with php 8.2, and was developed by a well known and respected php developer that is very actively involved in the development of php. He didn't really intend it to be used in production code the way I do, but it seems to work quite well for me, and has been working for some time now.

Metadata

Metadata

Assignees

Labels

featureNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions