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/Packages/Common/Common.php

    r874 r887  
    2626class PackageCommon
    2727{
    28   var $Name;
    29   var $Version;
    30   var $ReleaseDate;
    31   var $License;
    32   var $Creator;
    33   var $Homepage;
     28  public string $Name;
     29  public string $Version;
     30  public int $ReleaseDate;
     31  public string $License;
     32  public string $Creator;
     33  public string $Homepage;
    3434
    3535  function __construct()
     
    4646class Paging
    4747{
    48   var $TotalCount;
    49   var $ItemPerPage;
    50   var $Around;
    51   var $SQLLimit;
    52   var $Page;
     48  public int $TotalCount;
     49  public int $ItemPerPage;
     50  public int $Around;
     51  public string $SQLLimit;
     52  public int $Page;
    5353
    5454  function __construct()
     
    6060  }
    6161
    62   function Show()
     62  function Show(): string
    6363  {
    6464    $QueryItems = GetQueryStringArray($_SERVER['QUERY_STRING']);
Note: See TracChangeset for help on using the changeset viewer.