From 6123757c3714c8a2c0378bd3782ff78fba96a676 Mon Sep 17 00:00:00 2001 From: Greg Sarjeant Date: Wed, 6 Aug 2025 00:14:50 +0000 Subject: [PATCH] Add strict typing to all files that were missing it. (#60) Shockingly, this didn't require any code changes. But PHP is more forgiving with "strict typing" than I'd expected. I may go back and clean up function declarations later, but that's not urgent. Reviewed-on: https://gitea.subcultureofone.org/greg/tkr/pulls/60 Co-authored-by: Greg Sarjeant Co-committed-by: Greg Sarjeant --- config/bootstrap.php | 2 ++ public/index.php | 2 ++ src/Controller/AdminController/AdminController.php | 2 ++ src/Controller/AuthController/AuthController.php | 2 ++ src/Controller/Controller.php | 2 ++ src/Controller/CssController/CssController.php | 1 + src/Controller/EmojiController/EmojiController.php | 2 ++ src/Controller/FeedController/FeedController.php | 2 ++ src/Controller/HomeController/HomeController.php | 2 ++ src/Controller/LogController/LogController.php | 2 ++ src/Controller/MoodController/MoodController.php | 2 ++ src/Controller/TickController/TickController.php | 1 + src/Feed/AtomGenerator.php | 2 ++ src/Feed/FeedGenerator.php | 2 ++ src/Feed/RssGenerator.php | 2 ++ src/Framework/Log/Log.php | 2 ++ src/Framework/Migrator/Migrator.php | 2 ++ src/Framework/Prerequisites/Prerequisites.php | 2 ++ src/Framework/Router/Router.php | 2 ++ src/Framework/Session/Session.php | 1 + src/Framework/Util/Util.php | 2 ++ src/Model/ConfigModel/ConfigModel.php | 2 ++ src/Model/CssModel/CssModel.php | 2 ++ src/Model/EmojiModel/EmojiModel.php | 2 ++ src/Model/TickModel/TickModel.php | 2 ++ src/Model/UserModel/UserModel.php | 2 ++ src/View/FlashView/FlashView.php | 2 ++ src/View/MoodView/MoodView.php | 2 ++ src/View/TicksView/TicksView.php | 2 ++ tests/Controller/AdminController/AdminControllerTest.php | 2 ++ tests/Controller/FeedController/FeedControllerTest.php | 2 ++ tests/Controller/HomeController/HomeControllerTest.php | 2 ++ tests/Controller/LogController/LogControllerTest.php | 2 ++ tests/Controller/TickController/TickControllerTest.php | 2 ++ tests/Feed/AtomGeneratorTest.php | 2 ++ tests/Feed/FeedGeneratorTest.php | 2 ++ tests/Feed/RssGeneratorTest.php | 2 ++ tests/Framework/Log/LogTest.php | 2 ++ tests/Framework/Util/UtilTest.php | 2 ++ tkr-setup.php | 2 ++ 40 files changed, 77 insertions(+) diff --git a/config/bootstrap.php b/config/bootstrap.php index c65e441..0adc2b8 100644 --- a/config/bootstrap.php +++ b/config/bootstrap.php @@ -1,4 +1,6 @@ ' . "\n"; diff --git a/src/Feed/FeedGenerator.php b/src/Feed/FeedGenerator.php index fc7b349..dcebe55 100644 --- a/src/Feed/FeedGenerator.php +++ b/src/Feed/FeedGenerator.php @@ -1,4 +1,6 @@ ' . "\n"; diff --git a/src/Framework/Log/Log.php b/src/Framework/Log/Log.php index c54751e..533111c 100644 --- a/src/Framework/Log/Log.php +++ b/src/Framework/Log/Log.php @@ -1,4 +1,6 @@ 1, diff --git a/src/Framework/Migrator/Migrator.php b/src/Framework/Migrator/Migrator.php index 02ada1e..ec1435a 100644 --- a/src/Framework/Migrator/Migrator.php +++ b/src/Framework/Migrator/Migrator.php @@ -1,4 +1,6 @@ mood; diff --git a/src/View/TicksView/TicksView.php b/src/View/TicksView/TicksView.php index 166bafa..c2f52b7 100644 --- a/src/View/TicksView/TicksView.php +++ b/src/View/TicksView/TicksView.php @@ -1,4 +1,6 @@