CodeIgniter4
CodeIgniter4 copied to clipboard
Open Source PHP Framework (originally from EllisLab)
Just want to comment on the use of `{0}` in the strings: there are multiple ways of showing for example filenames in the messages: `"{0}"`, `({0})`, `` `{0}` `` or...
**Description** This adds a method, `when()` to the Query Builder that can conditionally modify queries based on the truthiness of a given condition. **Checklist:** - [X] Securely signed commits -...
### PHP Version 8.0 ### CodeIgniter4 Version 4.2.1 ### CodeIgniter4 Installation Method Composer (using `codeigniter4/appstarter`) ### Which operating systems have you tested for this bug? Linux ### Which server did...
Type `mixed` means `object|resource|array|string|int|float|bool|null`. https://www.php.net/manual/en/language.types.declarations.php#language.types.declarations.mixed The current code base has a lot of type `mixed` in PHPDocs, But I think all of them are not correct. And `mixed` prevents PHPStan...
https://github.com/codeigniter4/CodeIgniter4/blob/6f4b407bef5d6a06fef8fe566974a1eabd6f764d/system/Images/Handlers/ImageMagickHandler.php#L22 References - #6149 - #6297
### `set*Batch()` ```php public function setInsertBatch($key, string $value = '', ?bool $escape = null); public function setUpdateBatch($key, string $index = '', ?bool $escape = null); ``` `setUpdateBatch()` does not have...
### PHP Version 7.4 ### CodeIgniter4 Version dev ### CodeIgniter4 Installation Method Git ### Which operating systems have you tested for this bug? Windows ### Which server did you use?...
The combination of the `setUpdateBatch` method and the `updateBatch` method is difficult to use. If you try to use it, it will look like the following. ```php $builder->setUpdateBatch([ [ 'id'...
`$db->getFieldData()`'s explanation is not complete and accurate. ``` The following data is available from this function if supported by your database: name - column name max_length - maximum length of...