<?php
class Bar
{
private $a;
public function __construct($a)
{
$this->a = (bool) $a;
}
public function a()
{
return $this->a;
}
}
function foo(callable $x)
{
$object = new Bar(false);
$x($object);
return $object->a();
}
Absolute best score: 27