Today's Doctrine ORM bug: I have a column which is NOT NULL DEFAULT 0. However, the ORM automatically includes every column in INSERT queries, which means there's a NULL value and thus the query fails (I think I also need to specify the default in the ORM to fix this).
After introducing the registration of #WordPress hooks with #PHP attributes in my previous article, I'm following up with a second piece focused on hooks. This time, the topic is Hook-Driven Development:
Resisting the urge to undertake a massive rewrite or refactor of an existing codebase that has been quietly working for years. I only need to make the changes necessary to work with the latest version of #PHP. I have to keep reminding myself that rewriting everything is unnecessary. #dev
Have an idea for an article for us to write on Symfony Station? Contact us here on Mastodon! And please sign up for our "newsletter" to get the latest news communiques and original content delivered to your inbox. https://www.symfonystation.com/Contact :symfony: :drupal: :php: #Symfony#PHP#Drupal
🆕 blog! “Getting Auth0 user information on non-firewall Symfony pages”
I am using Auth0's Symfony library to allow users to log in with their social network providers. It works really well. Using this firewall configuration, a user who visits /private is successfully taken through the login flow and I can then use $this->getUser() to see their de…
So, this has probably been around forever, but I've never noticed this in a stack trace before "Object(SensitiveParameterValue)"
As in: Fatal error: Uncaught mysqli_sql_exception: No such file or directory in /Users/preinheimer/Sites/localhost/common.php:3 Stack trace: #0 /Users/preinheimer/Sites/localhost/common.php(3): mysqli->__construct('localhost', 'root', Object(SensitiveParameterValue), 'space_trade')
Looking forward to next week: travelling to Poland for the first time, to speak at @PHPers Summit about "Living Life on a Legacy Project" ! #php#phpconference 📢 🐘