Skip to content

Array and string offset access syntax with curly braces is no longer supported #39

@BrunoDuma

Description

@BrunoDuma

Estou com problemas quando instancio Pimaco, tenta acessar o array de uma forma que aparentemente nao é mais prmitida pelo PHP

Na linha $this->bodyBackgroundColor{0} == 5, ele retorna o erro do título, acreditot que se estivesse bodyBackgroundColor[0], funcionaria corretamente, vocês ja tiveram relatos desse problema com mais alguem?

Arquivo é o mpdf\mpdf\mpdf.php

if ($this->bodyBackgroundColor) {

		$s .= 'q ' . $this->SetFColor($this->bodyBackgroundColor, true) . "\n";

		if ($this->bodyBackgroundColor{0} == 5) { // RGBa

			$s .= $this->SetAlpha(ord($this->bodyBackgroundColor{4}) / 100, 'Normal', true, 'F') . "\n";

		} elseif ($this->bodyBackgroundColor{0} == 6) { // CMYKa

			$s .= $this->SetAlpha(ord($this->bodyBackgroundColor{5}) / 100, 'Normal', true, 'F') . "\n";

		}

		$s .= sprintf('%.3F %.3F %.3F %.3F re f Q', ($clx * _MPDFK), ($cly * _MPDFK), $clw * _MPDFK, $clh * _MPDFK) . "\n";

	}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions