for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/******************************************************************************
* An implementation of dicto (scg.unibe.ch/dicto) in and for PHP.
*
* Copyright (c) 2016 Richard Klees <[email protected]>
* This software is licensed under The MIT License. You should have received
* a copy of the license along with the code.
*/
namespace Lechimp\Dicto\Graph\Predicate;
use Lechimp\Dicto\Graph\Predicate;
use Lechimp\Dicto\Graph\Entity;
/**
* A predicate that is always true.
class _True extends Predicate {
* @inheritdocs
public function compile() {
return function(Entity $e) { return true; };
$e
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
}
public function for_types($existing_types) {
return $existing_types;
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.