[Lunr] Corona: Add types to exception classes

Review Request #878 — Created Oct. 26, 2022 and submitted

smillernl
Lunr
fix/corona/81_exception_types
876
879
lunr
Corona: Add types to exception classes


  • 0
  • 0
  • 1
  • 1
  • 2
Description From Last Updated
pprkut
  1. Ship It!
  2. 
      
b.stoop
  1. 
      
  2. string|null and ?string here?

    1. The key can't be NULL

    2. Alright, so the key can't be set to NULL. It's the question how getDataKey() should behave if no data is set.

    3. How about returning _UNKNOWN_? I think that's uncommon enough a key to work.

  3. 
      
smillernl
b.stoop
  1. 
      
  2. src/Lunr/Corona/Exceptions/BadGatewayException.php (Diff revisions 1 - 2)
     
     
     
     

    $previous is a bit confusing. It can be NULL but you can't set it NULL, should the doc then mention that it can be NULL?

  3. 
      
b.stoop
  1. Ship It!
  2. 
      
smillernl
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release/0.7.x (14298cf)
Loading...