-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix for php 8.3 #510
fix for php 8.3 #510
Conversation
Please check #512 |
I think my pr is no longer needed |
When doing squash & merge, use this commit message:
|
get_class() not working with php 8.3 |
@@ -30,7 +30,6 @@ class Sms_credit_model extends CI_Model { | |||
*/ | |||
function __construct() | |||
{ | |||
parent::__construct(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this case, and a few others, it seems it is advised to remove the constructor completely. See comment here: https://github.com/bcit-ci/CodeIgniter/blob/develop/user_guide_src/source/installation/upgrade_320.rst#step-3-remove-calls-to-ci_model__construct
There are other similar ones below.
@@ -43,7 +43,7 @@ function __construct($login = TRUE) | |||
$this->plugin_name = strtolower(get_class($this)); | |||
|
|||
// Prevent this controller from being called directly | |||
if (get_class() === get_class($this)) | |||
if ("Plugin_controller" === get_class($this)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about using __CLASS__
instead? Any advantage of it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
works too. i have changed it
Shouldn't we remove the construct function itself? If there is nothing inside it? |
That's what I meant in my comment above #510 (comment) |
Could work but it also works if you just leave it empty |
Could you please squash all the commits to leave only these two and set an appropriate commit message?
|
I can only make one fork that I can commit |
You probably need to use the command line for that. |
Search for "git squash commit" in a search engine. |
it's done |
Thanks |
updates codeigniter/framework to be compatible for php 8.2+ and removes fix that no longer works