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/Hidden.php

    r874 r887  
    1111  }
    1212
    13   function OnView($Item)
     13  function OnView(array $Item): ?string
    1414  {
    1515    $Output = $Item['Value'];
     
    1717  }
    1818
    19   function OnEdit($Item)
     19  function OnEdit(array $Item): string
    2020  {
    2121    $Output = '<input type="hidden" name="'.$Item['Name'].'" value="'.$Item['Value'].'" />';
     
    2323  }
    2424
    25   function OnLoad($Item)
     25  function OnLoad(array $Item): ?string
    2626  {
    2727    return $_POST[$Item['Name']];
Note: See TracChangeset for help on using the changeset viewer.