[Halo] General: Add return and parameter types

Review Request #736 — Created Feb. 19, 2021 and submitted

smillernl
Lunr.Halo
feature/general/types
lunr
General: Add return and parameter types


  • 0
  • 0
  • 3
  • 2
  • 5
Description From Last Updated
pprkut
  1. 
      
  2. src/Lunr/Halo/LunrBaseTest.php (Diff revision 1)
     
     

    I prefer use statements at the top over using absolute namespaces

  3. src/Lunr/Halo/LunrBaseTest.php (Diff revision 1)
     
     
  4. src/Lunr/Halo/LunrBaseTest.php (Diff revision 1)
     
     
  5. src/Lunr/Halo/LunrBaseTest.php (Diff revision 1)
     
     
     
     
     

    The reason why we don't re-mark as skipped here is because it's superfluous. It's not expected that you call unmock without having called mock before.

    1. That might be true, but it can still happen.

  6. src/Lunr/Halo/LunrBaseTest.php (Diff revision 1)
     
     
     

    why drop the return?

    1. because markTestSkipped throws, there is no way it would reach that code.

  7. 
      
smillernl
pprkut
  1. Ship It!
  2. 
      
smillernl
Review request changed

Status: Closed (submitted)

Loading...