for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Created by PhpStorm.
* User: arthur
* Date: 09.03.19
* Time: 21:51.
*/
namespace Foundation\Core;
final class File
{
* @var string
protected $name;
protected $path;
* @var resource
protected $resource;
* LarapiModule constructor.
* @param $name
public function __construct(string $name, string $path, Resource $resource)
$this->name = $name;
$this->path = $path;
$this->resource = $resource;
$resource
Foundation\Core\Resource
resource
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..
}
* @return string
public function getName(): string
return $this->name;
public function getPath(): string
return $this->path;
public function getNamespace(): string
return $this->resource->getNamespace().'\\'.$this->getName();
public function getFileName(): string
return $this->getName().'.php';
* @return Module
public function getModule(): Module
return $this->resource->getModule();
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..