Skip to content

Instantly share code, notes, and snippets.

@khepin
Created February 24, 2017 04:12
Show Gist options
  • Save khepin/e1c4aa0ead34ba8c30fb2733f432c3ee to your computer and use it in GitHub Desktop.
Save khepin/e1c4aa0ead34ba8c30fb2733f432c3ee to your computer and use it in GitHub Desktop.
<?php
$parentClass = 'Some\Class\Name';
$anonObject = new class() extends $parentClass {};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment