for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Parser Reflection API
*
* @copyright Copyright 2015, Lisachenko Alexander <[email protected]>
* This source file is subject to the license that is bundled
* with this source code in the file LICENSE.
*/
* This file is for ployfilling classes not defined in all supported
* versions of PHP, (i.e. PHP < 7).
if (!class_exists(ReflectionType::class, false)) {
/* Dummy polyfill class */
class ReflectionType
You can fix this by adding a namespace to your class:
namespace YourVendor; class YourClass { }
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.
{
public function allowsNull()
return true;
}
public function isBuiltin()
return false;
public function __toString()
return '';
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.