Hannes Van De Vreken

Hannes Van De Vreken

12 posts
PHP type hints: self and parent

PHP type hints: self and parent

In PHP we can type hint function arguments since version 5.0. Over the years and with newer versions of PHP the number of possible type hints have increased. Here’s an overview: public function foo( // Since 5.0 self $self, parent $parent, FooInterface $foo, // Since 5.1 array $array,...

Use gitattributes to keep your tests out of other people's production

Use gitattributes to keep your tests out of other people's production

A quick tip here, for all PHP developers out there who author packages registered on packagist.org. Add a .gitattributes file in the root of your github repository. The .gitattributes file allows you to configure several things, but the most important thing related to composer is the ability to not...

Laravel IoC container

Laravel IoC container

At work, I’m currently modernizing a legacy project without composer into an application with less code and thus fewer bugs. The first composer package I required was an application container to add Dependency Injection to the project. The container I used is called orno/di. I bootstrapped the container...

You’ve successfully subscribed to madewithlove
Welcome back! You’ve successfully signed in.
Great! You’ve successfully signed up.
Success! Your email is updated.
Your link has expired
Success! Check your email for magic link to sign-in.