Skip to content

Commit

Permalink
Fix php 8.4 deprecation - Update type to be explicitly nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
TorbenLundsgaard committed Sep 11, 2024
1 parent c50917b commit 7e68202
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Integration/EasyDigitalDownloads.php
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ public function prefix_item_id( string $item_id ): string {
*
* @return float
*/
public function get_price_to_display( int $download_id, string $price_index = null ): float {
public function get_price_to_display( int $download_id, ?string $price_index = null ): float {

if ( edd_has_variable_prices( $download_id ) ) {

Expand Down

0 comments on commit 7e68202

Please sign in to comment.