Skip to content

Commit

Permalink
make sure class exists
Browse files Browse the repository at this point in the history
  • Loading branch information
lekoala committed Nov 30, 2024
1 parent ce7ef8d commit e8a4a96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Xlsx/OpenSpout.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ protected function getWriter(): Writer
{
$options = new \OpenSpout\Writer\XLSX\Options();

if (method_exists($options, 'getProperties')) {
if (method_exists($options, 'getProperties') && class_exists(Properties::class)) {
$options->setProperties(new Properties(
creator: $this->creator
));
Expand Down

0 comments on commit e8a4a96

Please sign in to comment.