Shift with red gradient lettering

Declare strict types

PHP

Add the strict_types declaration to the PHP files autoloaded within your composer.json or under one of the specified additional paths.

Before

<?php
 
// ...

After

<?php
 
declare(strict_types=1);
 
// ...

← Back to the Workbench Tasks

Sign in with any of the following services to connect Shift with your Laravel project.


Don't use one of these services?

Temporarily push your project to a free, private repository on one of these cloud-based services or upgrade your project locally with Shift for Docker.