diff options
author | Remi Collet <remi@remirepo.net> | 2020-01-27 08:28:23 +0100 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2020-01-27 08:28:23 +0100 |
commit | 2b1a0b67d413b58e1c9de27dc4aba488e5273fd2 (patch) | |
tree | 6660e563760c6928322a75bf9f91dad8be1f5f0a /101.patch | |
parent | 3576136d1af47d861b4244ba5949ff05a3ddd6b5 (diff) |
update to 0.12.27
add patch for PHP 7.4 from
https://github.com/swaggest/php-json-schema/pull/101
Diffstat (limited to '101.patch')
-rw-r--r-- | 101.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/101.patch b/101.patch new file mode 100644 index 0000000..c06d2b2 --- /dev/null +++ b/101.patch @@ -0,0 +1,29 @@ +From 2d8ed28626848ce0b8cb0bdc71f39d557a87cadc Mon Sep 17 00:00:00 2001 +From: Remi Collet <remi@remirepo.net> +Date: Mon, 27 Jan 2020 08:24:35 +0100 +Subject: [PATCH] fix Trying to access array offset on value of type null (7.4) + +--- + src/Wrapper.php | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/Wrapper.php b/src/Wrapper.php +index 0a0a24a..19090cf 100644 +--- a/src/Wrapper.php ++++ b/src/Wrapper.php +@@ -105,7 +105,7 @@ public function getProperties() + */ + public function getProperty($name) + { +- return $this->schema->properties[$name]; ++ return isset($this->schema->properties[$name]) ? $this->schema->properties[$name] : null; + } + + /** +@@ -216,4 +216,4 @@ public function jsonSerialize() + return $this->schema->jsonSerialize(); + } + +-} +\ No newline at end of file ++} |