mirror of
https://github.com/codeigniter4/CodeIgniter4.git
synced 2025-02-20 11:44:28 +08:00
Core module typos
This commit is contained in:
parent
b940cfdefa
commit
bc69e18efc
@ -615,7 +615,7 @@ class CodeIgniter
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function getPerformanceStats()
|
||||
public function getPerformanceStats(): array
|
||||
{
|
||||
return [
|
||||
'startTime' => $this->startTime,
|
||||
|
@ -454,6 +454,7 @@ class Entity
|
||||
* @param $value
|
||||
*
|
||||
* @return \CodeIgniter\I18n\Time
|
||||
* @throws \Exception
|
||||
*/
|
||||
protected function mutateDate($value)
|
||||
{
|
||||
@ -484,7 +485,7 @@ class Entity
|
||||
|
||||
/**
|
||||
* Provides the ability to cast an item as a specific data type.
|
||||
* Add ? at the beginning of $type (i.e. ?string) to get NULL instead of castig $value if $value === null
|
||||
* Add ? at the beginning of $type (i.e. ?string) to get NULL instead of casting $value if $value === null
|
||||
*
|
||||
* @param $value
|
||||
* @param string $type
|
||||
|
@ -384,7 +384,7 @@ class Model
|
||||
|
||||
/**
|
||||
* Returns the first row of the result set. Will take any previous
|
||||
* Query Builder calls into account when determing the result set.
|
||||
* Query Builder calls into account when determining the result set.
|
||||
*
|
||||
* @return array|object|null
|
||||
*/
|
||||
@ -429,7 +429,7 @@ class Model
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function set($key, $value = '', bool $escape = null)
|
||||
public function set($key, string $value = '', bool $escape = null)
|
||||
{
|
||||
$data = is_array($key)
|
||||
? $key
|
||||
@ -1356,7 +1356,7 @@ class Model
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
protected function cleanValidationRules($rules, array $data = null): array
|
||||
protected function cleanValidationRules(array $rules, array $data = null): array
|
||||
{
|
||||
if (empty($data))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user