Log inSign up
Log inSign up
exakat, static analysis for PHP
3,138 posts
exakat, static analysis for PHP profile banner
@exakat

exakat, static analysis for PHP

@exakat
Open Source PHP Static Code Analysis
La Haye, Pays-Bas
exakat.io
Joined April 2014
147 Following
1,172 Followers
RepliesRepliesRepostsRepostsMediaMedia

Log in or sign up for X

See what’s happening and join the conversation

Continue with phone
or
Log in with username or email
Terms·Privacy·Cookies·Accessibility·Ads Info·© 2026 X Corp.
  • @exakat
    exakat, static analysis for PHP
    @exakat
    24 Sept
    So, int cannot be part of a intersection type, nor can string, both being scalar. Yet, there is a notion of numeric string, in #PHP, where this structure could fit. It would be a int (hence, a string), or a string that can convert to int. What do you think?
    <?php

function foo() : int&string {
    return '10';
}
  • @exakat
    exakat, static analysis for PHP
    @exakat
    23 Sept
    #PHP lazy class constant is the default behavior when creating constant with expressions, rather than literal values. This is both clever and a hidden trap. So, let's review that! 👇
    A lazy sleeping cat
    1
  • @exakat
    exakat, static analysis for PHP
    @exakat
    21 Sept
    Vale reads the comments in your #PHP code and apply checks: grammar, spelling and style, to make sure they are consistent and expressive. A tool for the most human part of the code. Install, review and run. 👇
    1
  • @exakat
    exakat, static analysis for PHP
    @exakat
    18 Sept
    What happens when you chain #PHP list() calls? And when you include a full assignement in the middle? Also, with #PHP 8.6 deprecating the list keyword, modern code likes like chains of arrays. #phptip #phptrick 👇
    1
  • @exakat
    exakat, static analysis for PHP
    @exakat
    17 Sept
    So, it's too late for #PHP 8.6, but can I ask for composable first class callable of the second order for #PHP 8.7? I tried even with |> operator, it fails. Is the only solution here to do a closure?
    1
Edit with