Ignore:
Timestamp:
Nov 20, 2020, 12:08:12 AM (3 years ago)
Author:
chronos
Message:
  • Added: Static types added to almost all classes, methods and function. Supported by PHP 7.4.
  • Fixed: Various found code issues.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Common/Form/Types/Enumeration.php

    r874 r887  
    55class TypeEnumeration extends TypeBase
    66{
    7   function OnView($Item)
     7  function OnView($Item): ?string
    88  {
    99    $Type = $this->FormManager->Type->GetTypeDefinition($Item['Type']);
     
    1414  }
    1515
    16   function OnEdit($Item)
     16  function OnEdit(array $Item): string
    1717  {
    1818    $Type = $this->FormManager->Type->GetTypeDefinition($Item['Type']);
     
    3232  }
    3333
    34   function OnLoad($Item)
     34  function OnLoad(array $Item): ?string
    3535  {
    3636    if ($_POST[$Item['Name']] == '') return NULL;
     
    3838  }
    3939
    40   function OnLoadDb($Item)
     40  function OnLoadDb(array $Item): ?string
    4141  {
    4242    if ($Item['Value'] == '') return NULL;
Note: See TracChangeset for help on using the changeset viewer.