Code type hints broken in quotes


  • sockdevs

    Continuing the discussion from i++ vs i+=1:

    @Onyx said:

    Those things are damned useful at times.

    $var = isset($_GET['arg']) ? $_GET['arg'] ? ARG_DEFAULT;
    ```</blockquote>
    
    Yeah… that's not right, is it? :laughing: 
    
    Same markdown, just without 'Those things are damned useful at times.'
    @Onyx <a href="/t/via-quote/9028/122">said</a>:<blockquote>```php
    $var = isset($_GET['arg']) ? $_GET['arg'] ? ARG_DEFAULT;
    ```</blockquote>
    
    Edit: Now over on [meta.d](https://meta.discourse.org/t/code-type-hints-broken-in-quotes/26229?u=raceprouk)


  • Good luck. Doing It Wrong.


  • sockdevs

    Hey, if they don't get reported, how can we hope they get fixed? ;)



  • Their stock thing is that quotes don't deserve formatting.



  • @boomzilla said:

    Their stock thing is that quotes don't deserve formattingmind bogglingly stupid.
    FTFY


  • sockdevs

    That… might not be the case here; they are looking at it…



  • I guess he didn't get the memo.



  • Maybe they can fix this one while they're at it?


    [code] broken [/code]

    [code]dumb[/code]


Log in to reply
 

Looks like your connection to What the Daily WTF? was lost, please wait while we try to reconnect.