🌐 AI搜索 & 代理 主页
Skip to content

Conversation

@Jean85
Copy link
Contributor

@Jean85 Jean85 commented May 27, 2021

WIP, this includes #517 to check thoroughly for feasibility.

@ste93cry WDYT of this different approach?

Copy link
Contributor

@ste93cry ste93cry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that by making 2.13 the minimum required version (they recently added back support for PHP 7.2) we could probably cleanup some other code because they added a forward compatibility layer

}
}

class MockDriver implements DriverInterface
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not clear to me why you added this class instead of mocking the interface like I was doing before. What's the benefit of doing this or the blocker that makes it impossible now to do it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Psalm was complaining. But it didn't fix the issue anyway, so we could rollback this.

Would bumping DBAL requirement create issues?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would bumping DBAL requirement create issues?

I don't think so, but the best thing is to try. We couldn't bump the minimum version before simply because there was no support for PHP 7.2, which is now back

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've investigated it further. The only additional FC is doctrine/dbal#4529, which is about ResultStatement, that we do not touch, so I don't see any advantages.

I'll try to push this PR forward, and on the code side it seems to work, but the static analysis is a complete mess.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there was no support for PHP 7.2, which is now back

But isn't 7.2 dead?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's EOL, but we still support it mainly because Sentry must run also on legacy platforms, if possible

@Jean85 Jean85 mentioned this pull request Jun 1, 2021
@Jean85
Copy link
Contributor Author

Jean85 commented Jul 7, 2021

Closing in favor of #527

@Jean85 Jean85 closed this Jul 7, 2021
@ste93cry ste93cry deleted the rework-dbal-compat-layer branch July 7, 2021 21:57
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

Successfully merging this pull request may close these issues.

4 participants