Skip to content

Commit

Permalink
src/Core/Accessor.php, src/Core/Traits/HaveDocumentatorEntity.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Xsaven committed Jun 2, 2021
1 parent a92d43a commit e3b7572
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Core/Accessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* @package Bfg\Entity\Core
*/
class Accessor {

/**
* @var array|object|string
*/
Expand Down Expand Up @@ -73,7 +73,7 @@ public function eloquentInstruction(array $instructions)
) {
foreach ($instructions as $name => $instruction) {

if (is_embedded_call($instruction)) {
if ($instruction instanceof \Closure) {

$result = call_user_func($instruction, $this->subject);

Expand Down
2 changes: 1 addition & 1 deletion src/Core/Traits/HaveDocumentatorEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function doc($call)
$this->doc = $call;
}

else if (is_embedded_call($call)) {
else if ($call instanceof \Closure) {

if (!$this->doc) {

Expand Down

0 comments on commit e3b7572

Please sign in to comment.