Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecated: Use of "self" in callables is deprecated #180

Open
siMobin opened this issue Dec 25, 2023 · 0 comments
Open

Deprecated: Use of "self" in callables is deprecated #180

siMobin opened this issue Dec 25, 2023 · 0 comments

Comments

@siMobin
Copy link

siMobin commented Dec 25, 2023

How I fix this issue?

Deprecated: Use of "self" in callables is deprecated in 
E:\Stamford University Bangladesh\vendor\erusev\parsedown-extra\ParsedownExtra.php 
on line 397

Note

Don't tell me to use error_reporting(E_ALL & ~E_DEPRECATED);

version Info:

    "erusev/parsedown": "^1.7",
    "erusev/parsedown-extra": "^0.8.1"

My code

<?php
require_once($_SERVER['DOCUMENT_ROOT'] . '/conn.php');
require($_SERVER['DOCUMENT_ROOT'] . '/vendor/autoload.php');
// error_reporting(E_ALL & ~E_DEPRECATED);

// Create an instance of Parsedown
$parsedown = new ParsedownExtra();
//.
//.
//.
//.
   <p>
                <?php
                // Parse Markdown content
                $parsedContent = $parsedown->text($row['content']);
                echo $parsedContent;
                ?>
  </p>
  
.....................................
...................................
........................................
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant