php-school / cli-menu

🖥 Build beautiful PHP CLI menus. Simple yet Powerful. Expressive DSL.
http://www.phpschool.io
MIT License
1.94k stars 107 forks source link

Fix PHP 8.1 deprecations #252

Closed AydinHassan closed 2 years ago

AydinHassan commented 2 years ago

These "integers" were being used in functions requiring actual integers and in a lot of the cases they were null instead. The fix is just to make sure these are real integers.

codecov-commenter commented 2 years ago

Codecov Report

Merging #252 (7536e2a) into master (af04121) will not change coverage. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #252   +/-   ##
=========================================
  Coverage     93.38%   93.38%           
+ Complexity      659      656    -3     
=========================================
  Files            38       38           
  Lines          1994     1994           
=========================================
  Hits           1862     1862           
  Misses          132      132           
Impacted Files Coverage Δ
src/MenuStyle.php 98.96% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update af04121...7536e2a. Read the comment docs.