Methods for PHP scalars.
Install great @nikic's extension that allows to use methods for scalar objects.
git clone git://github.com/nikic/scalar_objects.git
cd scalar_objects
phpize
./configure
make
sudo make install
Then add nkt/scalar
into your composer.json
. That's it!
PHPStorm/IDEA recognize scalars as classes (int, string, etc.)
so I've added stubs, that provides simple code completion for this library.
Unfortunately array
is a keyword in grammars, so there is no completion for it.