From 96ce51570be42fdf526ae13deb7c531aef2b320a Mon Sep 17 00:00:00 2001 From: Rey C Date: Mon, 22 Sep 2025 15:18:27 +0800 Subject: [PATCH 01/10] Fixed deprecated notice --- src/Collections/TrackedCollection.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Collections/TrackedCollection.php b/src/Collections/TrackedCollection.php index b7e26e5..e2040d4 100644 --- a/src/Collections/TrackedCollection.php +++ b/src/Collections/TrackedCollection.php @@ -105,7 +105,7 @@ public function getRemoveTableData() { * @param mixed $object * @param mixed $state */ - public function offsetSet($object, $state) { + public function offsetSet(mixed $object, mixed $state): void { switch ($state) { // If new, objects will have a 'model' but no 'last_state', @@ -136,7 +136,7 @@ public function offsetSet($object, $state) { * * @return bool */ - public function offsetExists($object) { + public function offsetExists(mixed $object): bool { return isset($this->list[$object->getHash()]); } @@ -146,7 +146,7 @@ public function offsetExists($object) { * * @param mixed $object */ - public function offsetUnset($object) { + public function offsetUnset(mixed $object): void { // If the object exists in the list. if (isset($this->list[$object->getHash()])) { @@ -167,7 +167,7 @@ public function offsetUnset($object) { * * @return mixed|null */ - public function offsetGet($object) { + public function offsetGet(mixed $object): bool { return isset($this->list[$object->getHash()]) ? $this->list[$object->getHash()]['model'] : NULL; } From 8ee0ec180f8fc7c430859a959affa6d27051bfc3 Mon Sep 17 00:00:00 2001 From: Rey C Date: Mon, 22 Sep 2025 15:30:35 +0800 Subject: [PATCH 02/10] Update composer.json --- composer.json | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/composer.json b/composer.json index 1729776..05307c6 100644 --- a/composer.json +++ b/composer.json @@ -1,11 +1,18 @@ { "name": "rjjakes/wordpress-orm", "description": "WORM. Doctrine style ORM for Wordpress.", - "keywords": ["wordpress", "plugin", "orm", "doctrine", "composer", "sql"], + "keywords": [ + "wordpress", + "plugin", + "orm", + "doctrine", + "composer", + "sql" + ], "homepage": "https://github.com/rjjakes/wordpress-orm", "require": { "php": ">=5.5", - "minime/annotations": "^3.1" + "doctrine/annotations": "^2.0" }, "license": "MIT", "authors": [ @@ -14,10 +21,10 @@ "email": "symlinkdigital@gmail.com" } ], - "autoload" : { - "psr-4" : { + "autoload": { + "psr-4": { "Symlink\\ORM\\": "src/" } }, "minimum-stability": "stable" -} +} \ No newline at end of file From d7321c72159d1a408a08a9f8e00cacfaf3667a85 Mon Sep 17 00:00:00 2001 From: Rey C Date: Mon, 22 Sep 2025 15:33:44 +0800 Subject: [PATCH 03/10] Update composer.json --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 05307c6..9a54b0e 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "rjjakes/wordpress-orm", + "name": "ziorwebdev/wordpress-orm", "description": "WORM. Doctrine style ORM for Wordpress.", "keywords": [ "wordpress", @@ -9,7 +9,7 @@ "composer", "sql" ], - "homepage": "https://github.com/rjjakes/wordpress-orm", + "homepage": "https://github.com/ziorwebdev/wordpress-orm", "require": { "php": ">=5.5", "doctrine/annotations": "^2.0" From 9c6e05e1d46321db4815e9f9e0152f821688d01d Mon Sep 17 00:00:00 2001 From: Rey Calantaol Date: Mon, 22 Sep 2025 15:35:12 +0800 Subject: [PATCH 04/10] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 47a4135..fd8588f 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# WORM (Wordpress ORM) +# Fork from WORM (Wordpress ORM) to support PHP 8.0+ *Under active development* @@ -31,7 +31,7 @@ master branch = active development ## Installation ``` -composer require rjjakes/wordpress-orm +composer require ziorwebdev/wordpress-orm ``` ## Usage From 8369b2a6af74060b297b6c29bf08fe163cd25824 Mon Sep 17 00:00:00 2001 From: Rey C Date: Mon, 22 Sep 2025 15:37:19 +0800 Subject: [PATCH 05/10] Update composer.json --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 9a54b0e..cbcc815 100644 --- a/composer.json +++ b/composer.json @@ -17,8 +17,8 @@ "license": "MIT", "authors": [ { - "name": "Ray Jakes", - "email": "symlinkdigital@gmail.com" + "name": "Rey C", + "email": "reygcalantaol@gmail.com" } ], "autoload": { From 161dcff4936206762c06f4922c08278945d048a0 Mon Sep 17 00:00:00 2001 From: Rey C Date: Mon, 22 Sep 2025 15:41:22 +0800 Subject: [PATCH 06/10] Update composer.json --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index cbcc815..342e6e8 100644 --- a/composer.json +++ b/composer.json @@ -11,7 +11,7 @@ ], "homepage": "https://github.com/ziorwebdev/wordpress-orm", "require": { - "php": ">=5.5", + "php": ">=8.0", "doctrine/annotations": "^2.0" }, "license": "MIT", From 1aa10819782f049bb2ef740f89eeaf2027d2112c Mon Sep 17 00:00:00 2001 From: Rey C Date: Mon, 22 Sep 2025 15:43:22 +0800 Subject: [PATCH 07/10] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index fd8588f..ad445f5 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ master branch = active development ## Installation ``` -composer require ziorwebdev/wordpress-orm +composer require ziorwebdev/wordpress-orm:dev-main ``` ## Usage From eb878c7c4cc10b0695a4c69415933252ee133275 Mon Sep 17 00:00:00 2001 From: Rey C Date: Mon, 22 Sep 2025 15:44:47 +0800 Subject: [PATCH 08/10] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ad445f5..dd77d95 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ master branch = active development ## Installation ``` -composer require ziorwebdev/wordpress-orm:dev-main +composer require ziorwebdev/wordpress-orm:dev-master ``` ## Usage From 3a17bd53a1abf9974d700af957e51f105174ee57 Mon Sep 17 00:00:00 2001 From: Rey C Date: Mon, 22 Sep 2025 16:14:48 +0800 Subject: [PATCH 09/10] Update composer.json --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 342e6e8..e95d5bd 100644 --- a/composer.json +++ b/composer.json @@ -12,7 +12,7 @@ "homepage": "https://github.com/ziorwebdev/wordpress-orm", "require": { "php": ">=8.0", - "doctrine/annotations": "^2.0" + "ziorwebdev/annotations": "dev-master" }, "license": "MIT", "authors": [ @@ -27,4 +27,4 @@ } }, "minimum-stability": "stable" -} \ No newline at end of file +} From c6be8e49a69721119ca5fad5b641919f27765109 Mon Sep 17 00:00:00 2001 From: Rey C Date: Mon, 22 Sep 2025 16:16:59 +0800 Subject: [PATCH 10/10] Update composer.json --- composer.json | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index e95d5bd..3b730c6 100644 --- a/composer.json +++ b/composer.json @@ -25,6 +25,5 @@ "psr-4": { "Symlink\\ORM\\": "src/" } - }, - "minimum-stability": "stable" -} + } +} \ No newline at end of file