Sphp\DateTime\Exceptions\InvalidArgumentException

Sphp\DateTime\ImmutableDate object cannot be parsed from input type

  • code:0
  • file:/home3/fjlpxeha/playground.samiholck.fi/sphp/php/Sphp/DateTime/ImmutableDate.php
  • line:124

Trace information

  1. file:/home3/fjlpxeha/playground.samiholck.fi/manual-app/app/php/classes/Man/Routers/CslendsrRouter.php
    line:59
    class:Sphp\DateTime\ImmutableDate
    static method:from
    arguments:
    1. '2026-W7'
  2. class:Man\Routers\CslendsrRouter
    instance method:runWeek
    arguments:
    1. object(Sphp\Router\RouteData)
  3. file:/home3/fjlpxeha/playground.samiholck.fi/sphp/php/Sphp/Router/Router.php
    line:149
    function:call_user_func
    arguments:
    1. array
    2. object(Sphp\Router\RouteData)
  4. file:/home3/fjlpxeha/playground.samiholck.fi/manual-app/app/php/loaders.php
    line:32
    class:Sphp\Router\Router
    instance method:execute
  5. file:/home3/fjlpxeha/playground.samiholck.fi/index.php
    line:7
    function:require_once
    arguments:
    1. '/home3/fjlpxeha/playground.samiholck.fi/manual-app/app/php/loaders.php'

Previous Exception

Sphp\DateTime\Exceptions\InvalidArgumentException

Failed to parse time string (2026-W7) at position 4 (-): Unexpected character

  • code:0
  • file:/home3/fjlpxeha/playground.samiholck.fi/sphp/php/Sphp/DateTime/DateTimes.php
  • line:50

Trace information

  1. file:/home3/fjlpxeha/playground.samiholck.fi/sphp/php/Sphp/DateTime/ImmutableDate.php
    line:39
    class:Sphp\DateTime\DateTimes
    static method:dateTimeImmutable
    arguments:
    1. '2026-W7'
  2. file:/home3/fjlpxeha/playground.samiholck.fi/sphp/php/Sphp/DateTime/ImmutableDate.php
    line:120
    class:Sphp\DateTime\ImmutableDate
    instance method:__construct
    arguments:
    1. '2026-W7'
  3. file:/home3/fjlpxeha/playground.samiholck.fi/manual-app/app/php/classes/Man/Routers/CslendsrRouter.php
    line:59
    class:Sphp\DateTime\ImmutableDate
    static method:from
    arguments:
    1. '2026-W7'
  4. class:Man\Routers\CslendsrRouter
    instance method:runWeek
    arguments:
    1. object(Sphp\Router\RouteData)
  5. file:/home3/fjlpxeha/playground.samiholck.fi/sphp/php/Sphp/Router/Router.php
    line:149
    function:call_user_func
    arguments:
    1. array
    2. object(Sphp\Router\RouteData)
  6. file:/home3/fjlpxeha/playground.samiholck.fi/manual-app/app/php/loaders.php
    line:32
    class:Sphp\Router\Router
    instance method:execute
  7. file:/home3/fjlpxeha/playground.samiholck.fi/index.php
    line:7
    function:require_once
    arguments:
    1. '/home3/fjlpxeha/playground.samiholck.fi/manual-app/app/php/loaders.php'

Previous Exception

DateMalformedStringException

Failed to parse time string (2026-W7) at position 4 (-): Unexpected character

  • code:0
  • file:/home3/fjlpxeha/playground.samiholck.fi/sphp/php/Sphp/DateTime/DateTimes.php
  • line:48

Trace information

  1. file:/home3/fjlpxeha/playground.samiholck.fi/sphp/php/Sphp/DateTime/DateTimes.php
    line:48
    class:DateTimeImmutable
    instance method:__construct
    arguments:
    1. '2026-W7'
    2. null
  2. file:/home3/fjlpxeha/playground.samiholck.fi/sphp/php/Sphp/DateTime/ImmutableDate.php
    line:39
    class:Sphp\DateTime\DateTimes
    static method:dateTimeImmutable
    arguments:
    1. '2026-W7'
  3. file:/home3/fjlpxeha/playground.samiholck.fi/sphp/php/Sphp/DateTime/ImmutableDate.php
    line:120
    class:Sphp\DateTime\ImmutableDate
    instance method:__construct
    arguments:
    1. '2026-W7'
  4. file:/home3/fjlpxeha/playground.samiholck.fi/manual-app/app/php/classes/Man/Routers/CslendsrRouter.php
    line:59
    class:Sphp\DateTime\ImmutableDate
    static method:from
    arguments:
    1. '2026-W7'
  5. class:Man\Routers\CslendsrRouter
    instance method:runWeek
    arguments:
    1. object(Sphp\Router\RouteData)
  6. file:/home3/fjlpxeha/playground.samiholck.fi/sphp/php/Sphp/Router/Router.php
    line:149
    function:call_user_func
    arguments:
    1. array
    2. object(Sphp\Router\RouteData)
  7. file:/home3/fjlpxeha/playground.samiholck.fi/manual-app/app/php/loaders.php
    line:32
    class:Sphp\Router\Router
    instance method:execute
  8. file:/home3/fjlpxeha/playground.samiholck.fi/index.php
    line:7
    function:require_once
    arguments:
    1. '/home3/fjlpxeha/playground.samiholck.fi/manual-app/app/php/loaders.php'