exakat, static analysis for PHP (@exakat) 's Twitter Profile
exakat, static analysis for PHP

@exakat

Open Source PHP Static Code Analysis

ID: 2426266201

linkhttp://www.exakat.io calendar_today03-04-2014 22:18:09

2,2K Tweet

1,1K Followers

139 Following

exakat, static analysis for PHP (@exakat) 's Twitter Profile Photo

#PHP list() command does not check much of the right side, so string and booleans are silently turned into null values. Also, it would be nice to support ellipsis with generators and list(). #PHP 9 may be? #phptip #phptrick php-tips.readthedocs.io/en/latest/tips…

#PHP list() command does not check much of the right side, so string and booleans are silently turned into null values.

Also, it would be nice to support ellipsis with generators and list(). #PHP 9 may be?

#phptip #phptrick

php-tips.readthedocs.io/en/latest/tips…
exakat, static analysis for PHP (@exakat) 's Twitter Profile Photo

The (array) cast is very agile to convert any kind of value to an array, including objects. The only one that resists is #PHP's closure. This one only wants to end in another array. #phptrick #phptip php-tips.readthedocs.io/en/latest/tips…

The (array) cast is very agile to convert any kind of value to an array, including objects.

The only one that resists is #PHP's closure. This one only wants to end in another array.

#phptrick #phptip

php-tips.readthedocs.io/en/latest/tips…
exakat, static analysis for PHP (@exakat) 's Twitter Profile Photo

Sometimes, you'll find underscores in your HTTP variables, where you expected other characters, like +, . or space. parse_str(), the underlying #PHP function, still enforce backward compatible behaviors. #phptip #phptrick php-tips.readthedocs.io/en/latest/tips…

Sometimes, you'll find underscores in your HTTP variables, where you expected other characters, like +, . or space.

parse_str(), the underlying #PHP function, still enforce backward compatible behaviors.

#phptip #phptrick

php-tips.readthedocs.io/en/latest/tips…
exakat, static analysis for PHP (@exakat) 's Twitter Profile Photo

<=> #PHP spaceship operator may be conveniently chained together to make a multisort() tool. #phptip #phptrick php-tips.readthedocs.io/en/latest/tips…

&lt;=&gt; #PHP spaceship operator may be conveniently chained together to make a multisort() tool.

#phptip #phptrick

php-tips.readthedocs.io/en/latest/tips…
Damien Seguy (@dseguy@phpc.social) (@faguo) 's Twitter Profile Photo

At #phptek there are sources of elephpants : Laravel, phparch and (may be) phptek itself. Count 35 euros each, when we meet (CPS style) Dm are open.

At #phptek there are sources of elephpants : Laravel, phparch and (may be) phptek itself. 
Count 35 euros each, when we meet (CPS style) 
Dm are open.
exakat, static analysis for PHP (@exakat) 's Twitter Profile Photo

When using a referenced argument, the type is checked but it is not garanteed. After execution, it might be different than initialy. Rare, but surprising. #phptip #phptrick php-tips.readthedocs.io/en/latest/tips…

When using a referenced argument, the type is checked but it is not garanteed. After execution, it might be different than initialy.

Rare, but surprising.

#phptip #phptrick

php-tips.readthedocs.io/en/latest/tips…
exakat, static analysis for PHP (@exakat) 's Twitter Profile Photo

#PHP can type arguments, properties and returns. But can it type also local variables ? Well, it could, and for a long time. #phptip #phptrick php-tips.readthedocs.io/en/latest/tips…

#PHP can type arguments, properties and returns. But can it type also local variables ?

Well, it could, and for a long time.

#phptip #phptrick

php-tips.readthedocs.io/en/latest/tips…
Dutch PHP Conference (@dpcon) 's Twitter Profile Photo

🚨 PHP turns 30! Join the first #RotterdamPHP meetup on June 12th 🎉 🎤 Gina Banyard: “30 years of PHP: The brilliant, the bad, and the baffling” 🍕 Food, 🍰 cake & 🥂 drinks 📍 Treehouse, Blaak 555, Rotterdam 🎟️ Free - limited spots! buff.ly/sVA2skX #php #phpcommunity

exakat, static analysis for PHP (@exakat) 's Twitter Profile Photo

#PHP recursive methods are easy, because they have a name. What about closures? arrow functions? #phptip #phptrick php-tips.readthedocs.io/en/latest/tips…

#PHP recursive methods are easy, because they have a name. 

What about closures? arrow functions? 

#phptip #phptrick

php-tips.readthedocs.io/en/latest/tips…
exakat, static analysis for PHP (@exakat) 's Twitter Profile Photo

#PHP methods must be compatible with the one in the parent. Except __construct, which may be different. And except abstract __construct. #phptip #phptrick php-tips.readthedocs.io/en/latest/tips…

#PHP methods must be compatible with the one in the parent.

Except __construct, which may be different.

And except abstract __construct.

#phptip #phptrick

php-tips.readthedocs.io/en/latest/tips…
exakat, static analysis for PHP (@exakat) 's Twitter Profile Photo

The humble bitwise operators (& ^ | ) have a hidden secret : they work on integers and also on strings. But not on both at the same time. One of the earliest #PHP feature, still available 30 years later. #phptip #phptrick php-tips.readthedocs.io/en/latest/tips…

The humble bitwise operators (&amp; ^ | ) have a hidden secret : they work on integers and also on strings.
But not on both at the same time.
One of the earliest #PHP feature, still available 30 years later.

#phptip #phptrick

php-tips.readthedocs.io/en/latest/tips…
exakat, static analysis for PHP (@exakat) 's Twitter Profile Photo

Since #PHP 8.4, we can have properties in interfaces! Thank you, property hooks! #phptip #phptrick php-tips.readthedocs.io/en/latest/tips…

Since #PHP 8.4, we can have properties in interfaces!

Thank you, property hooks!

#phptip #phptrick

php-tips.readthedocs.io/en/latest/tips…
exakat, static analysis for PHP (@exakat) 's Twitter Profile Photo

Did you know that #PHP 's own $GLOBALS variable is actually undefined? I'm going to miss the hedonism of those error messages once they are all fixed. #phptip #phptrick php-tips.readthedocs.io/en/latest/tips…

Did you know that #PHP 's own $GLOBALS variable is actually undefined?

I'm going to miss the hedonism of those error messages once they are all fixed.

#phptip #phptrick

php-tips.readthedocs.io/en/latest/tips…
exakat, static analysis for PHP (@exakat) 's Twitter Profile Photo

In #PHP array_merge_recursive(), what is recursive? Does it go deep in the guts of the arrays, or does it merges values that look alike? Or something else? #phptip #phptrick php-tips.readthedocs.io/en/latest/tips…

In #PHP array_merge_recursive(), what is recursive?

Does it go deep in the guts of the arrays, or does it merges values that look alike?

Or something else?

#phptip #phptrick

php-tips.readthedocs.io/en/latest/tips…
exakat, static analysis for PHP (@exakat) 's Twitter Profile Photo

#PHP mixed type accepts any type, just like no type. But it is also making property unreadable before initialisation. And that's often a useful check. #phptip #phptrick php-tips.readthedocs.io/en/latest/tips…

#PHP mixed type accepts any type, just like no type. But it is also making property unreadable before initialisation.

And that's often a useful check.

#phptip #phptrick

php-tips.readthedocs.io/en/latest/tips…
Stuardo Rodríguez (@stuardodevel) 's Twitter Profile Photo

#php when importing classes or namespaces, I would prefer to have, first what's to be imported, and then where it comes from. This would be way easier to read, and easier to sort.

#php when importing classes or namespaces, I would prefer to have, first what's to be imported, and then where it comes from.

This would be way easier to read, and easier to sort.
exakat, static analysis for PHP (@exakat) 's Twitter Profile Photo

#PHP properties may be a reference. #PHP properties may be promoted. #PHP properties may have a hook. Just not both at the same time. #phptip #phptrick php-tips.readthedocs.io/en/latest/tips…

#PHP properties may be a reference. 
#PHP properties may be promoted.
#PHP properties may have a hook.

Just not both at the same time.

#phptip #phptrick

php-tips.readthedocs.io/en/latest/tips…
PHP Talks (@phptalks) 's Twitter Profile Photo

Did you know? Over 1000+ php enthusiasts gathered at last year's #PHPConnect2024. Now, imagine the connections made, deals sealed and careers boosted. Take this as your sign to secure your spot for #PHPConnect2025. RSVP here: tsh.ink/phpconnect25 #PHPConnect2025 #phpconnect

Did you know? Over 1000+ php enthusiasts gathered at last year's #PHPConnect2024.
Now, imagine the connections made, deals sealed and careers boosted.

Take this as your sign to secure your spot for #PHPConnect2025.
RSVP here: tsh.ink/phpconnect25

#PHPConnect2025 #phpconnect
exakat, static analysis for PHP (@exakat) 's Twitter Profile Photo

So, take a #PHP array, but some value in it (like, anything). Can you make an infinite loop out of this? #phptip #phptrick php-tips.readthedocs.io/en/latest/tips…

So, take a #PHP array, but some value in it (like, anything). 

Can you make an infinite loop out of this? 

#phptip #phptrick

php-tips.readthedocs.io/en/latest/tips…