Skip to content
Permalink
Browse files

PHP 7.4 compatibility fix

  • Loading branch information
Nomafin committed Nov 13, 2019
1 parent 9d55081 commit 64c9a68d86f7db4632ae2ba593276fbb49704536
Showing with 5 additions and 1 deletion.
  1. +4 −0 CHANGELOG.md
  2. +1 −1 dust/Evaluate/Context.php
@@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
## [Unreleased]

### Fixed
- Small fix to DustPHP for PHP 7.4 compatibility.

## [1.26.1] - 2019-11-13

@@ -164,7 +164,7 @@ public function findInObject($key, $parent) {
if(is_object($parent) && !is_numeric($key))
{
//prop or method
if(array_key_exists($key, $parent))
if(property_exists($parent, $key))
{
return $parent->{$key};
}

0 comments on commit 64c9a68

Please sign in to comment.
You can’t perform that action at this time.