Skip to content

Instantly share code, notes, and snippets.

@amcastror
amcastror / cloudSettings
Created Apr 11, 2019
Visual Studio Code Settings Sync Gist
View cloudSettings
{"lastUpload":"2019-04-11T22:05:19.126Z","extensionVersion":"v3.2.8"}
@amcastror
amcastror / php-assign-and-validate.php
Created May 22, 2018
Asignación con validación en un if
View php-assign-and-validate.php
<?php
if(null === $entity = $this->em->find(1)){
throw new \Exception('Entity not found');
}