Ad
  • Custom User Avatar
  • Custom User Avatar

    "TypeError: Return value of solution() must be of the type integer, none returned".

    I checked and the type of the variable I was returning was "integer".

    I suspected the tests for php might be broken so I changed the last line of my function.

    The last line of my function now simply reads: "return 9".

    I'm still getting the exact same error.

    Am I correct in assuming the error is not all on me?
    I just started learning php last week and haven't been coding for too long so forgive me if I'm not seeing something obvious.