From a29ea00c2920be108793ec3c8f94ca47b308c7ee Mon Sep 17 00:00:00 2001 From: "Fedor A. Fetisov" Date: Fri, 9 Jul 2021 21:34:54 +0300 Subject: [PATCH] Make the project compatible with PHP8 --- src/Node.php | 3 ++- src/Proto.php | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 src/Proto.php diff --git a/src/Node.php b/src/Node.php index ce94b26..02d8cdf 100644 --- a/src/Node.php +++ b/src/Node.php @@ -12,11 +12,12 @@ namespace Canteen\HTML5 * echo html('br'); * * @class Node + * @extends Proto * @constructor * @param {String} [tag=null] The name of the tag * @param {Array|String} [attributes=null] The collection of tag attributes */ - class Node + class Node extends Proto { /** * The string name of the tag diff --git a/src/Proto.php b/src/Proto.php new file mode 100644 index 0000000..df7c16d --- /dev/null +++ b/src/Proto.php @@ -0,0 +1,37 @@ +