mirror of
https://github.com/standardebooks/web.git
synced 2025-07-07 15:20:32 -04:00
Add type hints and quiet a few other PHPStan complaints
This commit is contained in:
parent
c9ebd71587
commit
9f3104025d
5 changed files with 35 additions and 12 deletions
|
@ -2,6 +2,10 @@
|
|||
use function Safe\substr;
|
||||
|
||||
abstract class PropertiesBase extends OrmBase{
|
||||
/**
|
||||
* @param mixed $var
|
||||
* @return mixed
|
||||
*/
|
||||
public function __get($var){
|
||||
$function = 'Get' . $var;
|
||||
|
||||
|
@ -22,7 +26,11 @@ abstract class PropertiesBase extends OrmBase{
|
|||
}
|
||||
}
|
||||
|
||||
public function __set($var, $val){
|
||||
/**
|
||||
* @param mixed $val
|
||||
* @return mixed
|
||||
*/
|
||||
public function __set(string $var, $val){
|
||||
$function = 'Set' . $var;
|
||||
if(method_exists($this, $function)){
|
||||
$this->$function($val);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue