Skip to content

Commit

Permalink
PHP8 - test for array key presence (#48)
Browse files Browse the repository at this point in the history
* test for array key presence

* Update CHANGELOG.md

Co-authored-by: Basil <[email protected]>
  • Loading branch information
stijnster and nadar authored Jun 1, 2021
1 parent 421f709 commit e2f1330
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.

This project adheres to [Semantic Versioning](http://semver.org/).

## 2.6.1 (1. June 2021)

+ [#48](https://github.com/nadar/quill-delta-parser/pull/48) PHP 8 compatibility.

## 2.6.0 (2. December 2020)

+ [#42](https://github.com/nadar/quill-delta-parser/pull/42) Added PHP 8 Support.
Expand Down
4 changes: 2 additions & 2 deletions src/Pick.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class Pick
* @var Listener The listener object the picke was made from.
*/
protected $listener;

/**
* Create new line pick
*
Expand All @@ -51,7 +51,7 @@ public function __construct(Listener $listener, Line $line, array $options, $ind
*/
public function __get($name)
{
return $this->options[$name];
return array_key_exists($name, $this->options) ? $this->options[$name] : null;
}

/**
Expand Down

0 comments on commit e2f1330

Please sign in to comment.