mirror of
https://github.com/standardebooks/web.git
synced 2025-07-19 12:54:48 -04:00
More type fixes
This commit is contained in:
parent
a5a19f947f
commit
99b5fd66f2
17 changed files with 103 additions and 122 deletions
|
@ -126,6 +126,7 @@ trait Accessor{
|
|||
|
||||
if(property_exists($this, $privateVar)){
|
||||
try{
|
||||
/** @throws \Throwable */
|
||||
$this->__get($var);
|
||||
}
|
||||
catch(\Throwable){
|
||||
|
|
|
@ -7,7 +7,7 @@ namespace Traits;
|
|||
trait FromRow{
|
||||
/**
|
||||
* Fill an object with the given database row.
|
||||
* This is useful when a subclass has to fill its object in a `FromRow()` method, but its parent class also has a `FromRow()` method defined. For example, `CompoundAction` and `Action`.
|
||||
* This is useful when a subclass has to fill its object in a `FromRow()` method, but its parent class also has a `FromRow()` method defined.
|
||||
*
|
||||
* @template T of self
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue